[Fixed]-Django OneToOneRelation

1👍

If you want a user to have one subscription, but one subscription to be used by many users, you don’t want a one-to-one at all; you want a standard ForeignKey. This will give you exactly what you want:

class Member(models.Model):
    ...
    subscription = models.ForeignKey(Subscription)

Leave a comment