Yup - we created something similar for a client that had multi level
branches - we used a single 'companies' table with a ForeignKey to itself,
so that your table design can allow an (almost) unlimited amount of sub
levels.

To be honest, you're probably (not 100% sure) creating *more* work for
yourself trying to make something like this work in django admin, than just
designing something for yourself (YMMV).

Cal

On Wed, Oct 19, 2011 at 9:05 AM, zzart...@googlemail.com <
zzart...@googlemail.com> wrote:

> Hi Everyone
> I need to build one  instance of  django admin that can be used by
> multiple companies.
> the schema is :
>
> Company1
>     Branch 1
>          User 1
>          User 2
>     Branch 2
>          User 3
>          .......
>
> Company 2
>     Branch 1
>          User 4
>          User 5
>     Branch 2
>          User 6
>          .......
>
> The idea behind this is that user 1 and 2 is able to see (but cannot
> edit ) user's 3  stuff. Where as  users 1 and 2 can see and edit each
> other's content. All this within the Company1 scope (only).
> My question is are there any devs out there who's faced a similar
> problem and want to share their thoughts on how this can be achieved
> in dj admin? Any additional packages which can be utilized to extend
> dj admin functionality in right direction ?
>
> Im aware that this challenges the idea of what was dj admin designed
> for (no need to caution about this ) ... but since there isn't enough
> hands to design and build something from a scratch for this project i
> need to tap into dj admin functionality as much as i can.
>
> All thoughts will greatly be appreciated !
> Mars
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to