On Friday, November 28, 2014 3:16:41 AM UTC-8, Anju SB wrote: > > Dear Friends, > > I want to develop a django based GIS web application. In my application > there are different levels of users namely station level user, circle level > user etc. Each user details are provided in different table, How can I > map/ relate the user with these tables. Pleas help me to solve this issue. > >
I think of situations like this as having two prongs: 1) Various groups have various permission levels in portions of the project 2) Group members may have additional data/fields associated with their profiles. For #1, use Django's Groups system to assign group memberships and permissions as needed. You can start using those permissions throughout your project immediately. For #2, you can create additional profile sub-types, keyed to a base profile. e.g. maybe everyone gets a UserProfile, while instructors also get an InstructorProfile that's FK'd to UserProfile. You can use post-save signals or other mechanisms to make sure that everyone has the right additional profile fields. Now let's say a user is looking at their profile editor - you could say "If user in group Instructors, also let them edit their associated InstructorProfile." There are many ways to skin this cat... ./s -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d4ee0831-d6c9-4c9e-8c90-61ef7b140292%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

