Re: Multi Client Django System

2013-05-27 Thread Richard Cooke (Gmail)
Thanks Frank! Lots of great bed-time reading!! Rich. On 5/23/2013 2:32 PM, Frank Bieniek wrote: Hi Richard, How do you ( a ) get the system to call your "by user" query? *a)* in your views you query manually - see below - organization_list And ( b ) how do you get the system to send in the

Re: Multi Client Django System

2013-05-23 Thread Frank Bieniek
Hi Richard, How do you ( a ) get the system to call your "by user" query? *a)* in your views you query manually - see below - organization_list And ( b ) how do you get the system to send in the current "user"? the magic is in the permalink *get_slugged_organization_documents_url* in the

Re: Multi Client Django System

2013-05-22 Thread Richard E. Cooke
Frank! You appear to have figured out what I spent most of today trying to figure out: How to get access to the current logged in user from INSIDE a custom data manager! Can you clarify something in your code? In your custom manager you define "by_user", which takes "user" as an input. But

Re: Multi Client Django System

2013-02-26 Thread Delcio Torres
A friend just sent me this: https://pypi.python.org/pypi/django-simple-multitenant and another, recommended this to prevent url tempering: http://pythonhosted.org/django-guardian/ I will have a look also. Delcio Em sábado, 23 de fevereiro de 2013 00h43min45s UTC-3, Delcio Torres escreveu: >

Re: Multi Client Django System

2013-02-26 Thread Delcio Torres
Hey Bino nevermind I'm learning here and will try to use the same approach, so far I already know that I need to get deep on manager, as I've never used it before. Keep going! Thanks! Em segunda-feira, 25 de fevereiro de 2013 14h56min36s UTC-3, Subodh Nijsure escreveu: > > Could - Django

Re: Multi Client Django System

2013-02-25 Thread Subodh Nijsure
Could - Django multitenant cold possibly help you? https://pypi.python.org/pypi/django-simple-multitenant -Subodh On Fri, Feb 22, 2013 at 7:43 PM, Delcio Torres wrote: > Dear Sirs, > > Maybe this is a concept question, but here we go. > > I'm doing test development to

Re: Multi Client Django System

2013-02-25 Thread Frank Bieniek
We achived the second level auth, by tying an extended group to a company, all company members are part of this group, so we can leverage the normal auth mechanismen. Hope this gives you an idea. Thanks Frank class CompanyManager(models.Manager): filter_by_user_limit_field = None

Re: Multi Client Django System

2013-02-23 Thread Bino Oetomo
On Saturday, February 23, 2013 11:03:20 PM UTC+7, Gabriel - Iulian Dumbrava wrote: > > As far as I remember there is already a package out called django-saas or > something like that. > > Let me know how you solve it. > Gabriel > > I think I'll take : 1.

Re: Multi Client Django System

2013-02-23 Thread Bino Oetomo
Dear Gabriel Sir. I really appreciate your response On Saturday, February 23, 2013 11:00:10 PM UTC+7, Gabriel - Iulian Dumbrava wrote: > > How I would do it would be to have a special column (foreign key) in each > table (model) called Company (company_id) Yes , thats the plan > and change

Multi Client Django System

2013-02-23 Thread Gabriel - Iulian Dumbrava
As far as I remember there is already a package out called django-saas or something like that. Let me know how you solve it. Gabriel -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Multi Client Django System

2013-02-23 Thread Gabriel - Iulian Dumbrava
How I would do it would be to have a special column (foreign key) in each table (model) called Company (company_id) and change all default managers to filter on company_id = logged_in_user.company_id. In this way you are sure tha users only see what belongs to their company. You would have

Re: Multi Client Django System

2013-02-22 Thread Delcio Torres
Thanks, will check! I'm really struggling to find the best approach. Em sábado, 23 de fevereiro de 2013 00h54min46s UTC-3, Bino Oetomo escreveu: > > Hi Delcio > > On Feb 23, 10:43 am, Delcio Torres wrote: > > Dear Sirs, > > > > Maybe this is a concept question, but

Re: Multi Client Django System

2013-02-22 Thread Bino Oetomo
Hi Delcio On Feb 23, 10:43 am, Delcio Torres wrote: > Dear Sirs, > > Maybe this is a concept question, but here we go. > > I'm doing test development to learn django and using admin for everything. > > This is a Company/Employee/HeathInsurance CRUD system. > > The main

Multi Client Django System

2013-02-22 Thread Delcio Torres
Dear Sirs, Maybe this is a concept question, but here we go. I'm doing test development to learn django and using admin for everything. This is a Company/Employee/HeathInsurance CRUD system. The main ideia is that I want to provide this for different companies and still not allow them to see