Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
djangoldp-contact
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
djangoldp-packages
djangoldp-contact
Commits
632be9f2
Commit
632be9f2
authored
1 year ago
by
Sylvain Le Bon
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: reactivated owner creation perms
parent
a85569b4
No related branches found
No related tags found
Loading
Checking pipeline status
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
djangoldp_contact/models.py
+2
-2
2 additions, 2 deletions
djangoldp_contact/models.py
with
2 additions
and
2 deletions
djangoldp_contact/models.py
+
2
−
2
View file @
632be9f2
...
...
@@ -5,7 +5,7 @@ from django.dispatch import receiver
from
django.utils.translation
import
gettext_lazy
as
_
from
djangoldp.fields
import
LDPUrlField
from
djangoldp.models
import
Model
from
djangoldp.permissions
import
AuthenticatedOnly
,
OwnerPermissions
from
djangoldp.permissions
import
AuthenticatedOnly
,
OwnerPermissions
,
OwnerCreatePermission
from
djangoldp_notification.models
import
Notification
...
...
@@ -21,7 +21,7 @@ class Contact(Model):
verbose_name_plural
=
_
(
"
contacts
"
)
auto_author
=
'
user
'
owner_field
=
'
user
'
permission_classes
=
[
AuthenticatedOnly
,
OwnerPermissions
]
permission_classes
=
[
AuthenticatedOnly
,
OwnerCreatePermission
,
OwnerPermissions
]
unique_together
=
[[
'
user
'
,
'
contact
'
]]
rdf_type
=
"
sib:contact
"
...
...
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