Export to GitHub

django-swingtime - issue #5

Extend to have multi-users?


Posted on May 7, 2010 by Happy Lion

It'd be great if swingtime could support multi users.

I feel like I am missing something - I think there should be an obvious way of extending the objects to incorporate this ownership concept... but I can't think of it!

Any suggestions or assistance most welcome!

Thanks in advance, best - j

Comment #1

Posted on Oct 26, 2010 by Swift Camel

Haven't actually looked at swingtime yet, though I'm thinking about it, but the general principle I use is to create a profile for each user (for instance by listening to the post_save signal of the User class). In the profile I store a manytomany field with keys to the objects I want to associate with the user. In my views, I would use request.user.get_profile().calendar_events.all() to get to the events of the user.

Status: New

Labels:
Type-Defect Priority-Medium