mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-13 22:26:01 +00:00
django2.2: add default mandatory on_delete on OneToOneField
This commit is contained in:
7 files changed
+25
-8
No files matched your search
+3
-1
@@ -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