Re: Multiple levels of user in django application

2014-12-02 Thread Scot Hacker
On Tuesday, December 2, 2014 1:53:36 AM UTC-8, Anju SB wrote: > > > We can't modify the 5 user details tables, because the other applications > are associated with that table. It is required to map these table with user > table. But using the foreign key relationship we can only relate to one

Re: Multiple levels of user in django application

2014-12-02 Thread Anju SB
We can't modify the 5 user details tables, because the other applications are associated with that table. It is required to map these table with user table. But using the foreign key relationship we can only relate to one table. How can I design models without affecting the 5 tables

Re: Multiple levels of user in django application

2014-12-01 Thread Scot Hacker
On Monday, December 1, 2014 9:00:51 PM UTC-8, Anju SB wrote: > > Actually I can't change the models of the different user details > (state_data,district_data,dub-division_data,circle_data,station_data) > because these tables are used for other GIS activities. > I need to map user with these

Re: Multiple levels of user in django application

2014-12-01 Thread James Schneider
W wc On Dec 1, 2014 9:00 PM, "Anju SB" wrote: > Actually I can't change the models of the different user details > (state_data,district_data,dub-division_data,circle_data,station_data) > because these tables are used for other GIS activities. > I need to map user with these

Re: Multiple levels of user in django application

2014-12-01 Thread Anju SB
Actually I can't change the models of the different user details (state_data,district_data,dub-division_data,circle_data,station_data) because these tables are used for other GIS activities. I need to map user with these tables. On Saturday, 29 November 2014 23:00:11 UTC+5:30, Cal Leeming

Re: Multiple levels of user in django application

2014-11-30 Thread Anju SB
I am basically a PHP programmer, and I have been assigned modify existing django application. Now I want to create a login for all the 5 levels of

Re: Multiple levels of user in django application

2014-11-29 Thread Cal Leeming
I'm not sure if this was one of your requirements, but as you raised the concern of performance I thought it was worth mentioning. Object level permissions in Django will create an additional row for every object you set a permission on, this can have a devastating impact on performance depending

Re: Multiple levels of user in django application

2014-11-29 Thread Scot Hacker
On Saturday, November 29, 2014 8:49:25 AM UTC-8, Anju SB wrote: > > > Thank your for your reply. Actually I created another model that > aggregates all the values from each group table. but after analyzing I > feel its a worst method and performance is also very low.So model re-design > is

Re: Multiple levels of user in django application

2014-11-29 Thread Anju SB
Thank your for your reply. Actually I created another model that aggregates all the values from each group table. but after analyzing I feel its a worst method and performance is also very low.So model re-design is the only way to sort out this issue and need help for redesigning the

Re: Multiple levels of user in django application

2014-11-29 Thread Timothy W. Cook
You may need to re-think your model design or add a model that aggregates the others and use it to link to the group model? There are many options but only you know the best one. On Sat, Nov 29, 2014 at 9:33 AM, Anju SB wrote: > But the user's details are in different

Re: Multiple levels of user in django application

2014-11-29 Thread Anju SB
But the user's details are in different models , Groups may have different fields On Saturday, 29 November 2014 16:49:35 UTC+5:30, Timothy W. Cook wrote: > > > > On Sat, Nov 29, 2014 at 6:49 AM, Anju SB > wrote: > >> Actually my application needs to store different

Re: Multiple levels of user in django application

2014-11-29 Thread Timothy W. Cook
On Sat, Nov 29, 2014 at 6:49 AM, Anju SB wrote: > Actually my application needs to store different information about each > group of users and needs to map these data with the auth_user table. > > ​Yes. You can create a model for that information and then use the group as

Re: Multiple levels of user in django application

2014-11-29 Thread Anju SB
Actually my application needs to store different information about each group of users and needs to map these data with the auth_user table. On Saturday, 29 November 2014 13:34:49 UTC+5:30, Timothy W. Cook wrote: > > > > On Sat, Nov 29, 2014 at 3:51 AM, Anju SB > wrote:

Re: Multiple levels of user in django application

2014-11-29 Thread Timothy W. Cook
On Sat, Nov 29, 2014 at 3:51 AM, Anju SB wrote: > Thank you Scot Hacker. > But my application needs more than one user from the same group. > > ​You can have multiple users in a group. That is kind of the definition of a group. :-) See here:

Re: Multiple levels of user in django application

2014-11-28 Thread Anju SB
Thank you Scot Hacker. But my application needs more than one user from the same group. On Friday, 28 November 2014 23:24:34 UTC+5:30, Scot Hacker wrote: > > > On Friday, November 28, 2014 3:16:41 AM UTC-8, Anju SB wrote: >> >> Dear Friends, >> >> I want to develop a django based GIS

Re: Multiple levels of user in django application

2014-11-28 Thread Scot Hacker
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

Multiple levels of user in django application

2014-11-28 Thread Anju SB
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