Author: jtauber
Date: Mon Sep  8 10:34:03 2008
New Revision: 851

Modified:
    trunk/pinax/local_apps/projects/models.py

Log:
added member_users m2m to more easily get member users from a project

Modified: trunk/pinax/local_apps/projects/models.py
==============================================================================
--- trunk/pinax/local_apps/projects/models.py   (original)
+++ trunk/pinax/local_apps/projects/models.py   Mon Sep  8 10:34:03 2008
@@ -31,11 +31,13 @@
      created = models.DateTimeField(_('created'), default=datetime.now)
      description = models.TextField(_('description'))

+    member_users = models.ManyToManyField(User, through="ProjectMember",  
verbose_name=_('members'))
+
      # private means only members can see the project
      private = models.BooleanField(_('private'), default=False)

      tags = TagField()
-
+
      photos = generic.GenericRelation(Pool)

      # @@@ this might be better as a filter provided by wikiapp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to