Skip to content
Snippets Groups Projects
Commit 4cce5194 authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

update: updating event mode

parent d8e2a10e
No related branches found
No related tags found
1 merge request!20update: updating event mode
...@@ -41,12 +41,13 @@ class Event (Model): ...@@ -41,12 +41,13 @@ class Event (Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='createdEvents', null=True, blank=True, on_delete=models.SET_NULL) author = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='createdEvents', null=True, blank=True, on_delete=models.SET_NULL)
class Meta : class Meta :
nested_fields=['type', 'circle'] nested_fields=['type', 'circle', 'author', 'location']
ordering = ["startDate"] ordering = ['startDate']
anonymous_perms = ['view', 'add']
auto_author = 'author' auto_author = 'author'
owner_field = 'author' owner_field = 'author'
owner_perms = ['inherit','change','delete'] anonymous_perms = ['view']
authenticated_perms = ['inherit', 'add']
owner_perms = ['inherit', 'change', 'control', 'delete']
def __str__(self): def __str__(self):
return self.name return self.name
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment