How to use ManyToMany model relations to track user membership?
Hi.
Can someone please tell, what kind of relations is required to store
user's membership in multiple groups to be able to recover:
1. history of user participation in some groups (date joined, date
quit)
2. list of current user groups (in join order) to determine his
current status
3. list of users, who were participating in that group at a given
period of time
I guess it is ManyToMany (or an ugly kind of OneToMany), but can't
decide how to implement it; need a minimal example in Django.
And what kind of database consistency problems should be expected at
deleting some group/user?
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home