Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djangoldp-notification
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
decentral1se
djangoldp-notification
Commits
da08da00
Commit
da08da00
authored
5 years ago
by
Jean-Baptiste
Browse files
Options
Downloads
Patches
Plain Diff
update: add user cascade
parent
47b85d01
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
djangoldp_notification/models.py
+2
-2
2 additions, 2 deletions
djangoldp_notification/models.py
with
2 additions
and
2 deletions
djangoldp_notification/models.py
+
2
−
2
View file @
da08da00
...
...
@@ -10,7 +10,7 @@ from django.db import models
from
django.db.models.signals
import
post_save
from
django.dispatch
import
receiver
from
oidc_provider.models
import
Token
from
django.
core.urlresolver
s
import
NoReverseMatch
from
django.
url
s
import
NoReverseMatch
from
djangoldp.fields
import
LDPUrlField
from
djangoldp.models
import
Model
...
...
@@ -18,7 +18,7 @@ from djangoldp.permissions import InboxPermissions
class
Notification
(
Model
):
user
=
models
.
ForeignKey
(
settings
.
AUTH_USER_MODEL
,
related_name
=
'
inbox
'
)
user
=
models
.
ForeignKey
(
settings
.
AUTH_USER_MODEL
,
related_name
=
'
inbox
'
,
on_delete
=
models
.
deletion
.
CASCADE
)
author_user
=
LDPUrlField
()
object
=
LDPUrlField
()
type
=
models
.
CharField
(
max_length
=
255
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment