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:
Magnus Hagander
2010-02-26 12:34:19 +01:00
parent da3e5312ab
commit 7b3bb5d09b
11 changed files with 34 additions and 20 deletions

View File

@ -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