mirror of
https://github.com/Hopiu/django-tos.git
synced 2026-03-16 20:10:24 +00:00
Put these back to cascade
This commit is contained in:
parent
9d312c8697
commit
deda669daa
1 changed files with 2 additions and 2 deletions
|
|
@ -68,8 +68,8 @@ class TermsOfService(BaseModel):
|
|||
|
||||
|
||||
class UserAgreement(BaseModel):
|
||||
terms_of_service = models.ForeignKey(TermsOfService, related_name='terms', on_delete=models.DO_NOTHING)
|
||||
user = models.ForeignKey(get_fk_user_model(), related_name='user_agreement', on_delete=models.DO_NOTHING)
|
||||
terms_of_service = models.ForeignKey(TermsOfService, related_name='terms', on_delete=models.CASCADE)
|
||||
user = models.ForeignKey(get_fk_user_model(), related_name='user_agreement', on_delete=models.CASCADE)
|
||||
|
||||
def __unicode__(self):
|
||||
return u'%s agreed to TOS: %s' % (self.user.username,
|
||||
|
|
|
|||
Loading…
Reference in a new issue