Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
46306a40
Unverified
Commit
46306a40
authored
Nov 29, 2017
by
Thom Wiggers
📐
Browse files
Fix missing on_delete
parent
f6cc10c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/pushnotifications/models.py
View file @
46306a40
...
...
@@ -21,7 +21,9 @@ class Device(models.Model):
help_text
=
_
(
"Inactive devices will not be sent notifications"
)
)
user
=
models
.
ForeignKey
(
django_settings
.
AUTH_USER_MODEL
,
blank
=
False
,
null
=
False
)
on_delete
=
models
.
CASCADE
,
blank
=
False
,
null
=
False
)
date_created
=
models
.
DateTimeField
(
verbose_name
=
_
(
"registration date"
),
auto_now_add
=
True
,
null
=
False
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment