mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-06 09:57:57 +00:00
Make organisations support multiple "managers" and not just one
"submitter", thus making it possible for a single person to manage multiple organisations, as well as for a single organisation to have multiple different manages. Re-hook events and news items to use organisation of the submitter instead of the user who did the submission. (product listings already did this)
This commit is contained in:
@ -44,7 +44,7 @@ class Organisation(PgModel, models.Model):
|
||||
email = models.EmailField(null=False, blank=True)
|
||||
phone = models.CharField(max_length=100, null=False, blank=True)
|
||||
orgtype = models.ForeignKey(OrganisationType, null=False, blank=False)
|
||||
submitter = models.ForeignKey(User, null=False, blank=False)
|
||||
managers = models.ManyToManyField(User, null=False, blank=False)
|
||||
lastconfirmed = models.DateTimeField(null=False, blank=False, default=datetime.now())
|
||||
|
||||
send_notification = True
|
||||
|
Reference in New Issue
Block a user