mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
django2.2: add default mandatory on_delete on OneToOneField
This commit is contained in:
@ -421,7 +421,9 @@ class ForumUserInfo(models.Model):
|
||||
user, such as the favourite topics, the signature, and so on...
|
||||
"""
|
||||
|
||||
user = models.OneToOneField(User, related_name="_forum_infos")
|
||||
user = models.OneToOneField(
|
||||
User, related_name="_forum_infos", on_delete=models.CASCADE
|
||||
)
|
||||
last_read_date = models.DateTimeField(
|
||||
_("last read date"),
|
||||
default=datetime(
|
||||
|
Reference in New Issue
Block a user