Hello Fellipe,

sounds like you're developing a multi-tenancy webapp. Maybe 
https://github.com/bernardopires/django-tenant-schemas is the right tool 
for you.

Regards,
Julian

Am Sonntag, 19. August 2018 17:29:16 UTC+2 schrieb Fellipe Henrique:
>
> Hello,
>
> I need to build a system.. each user will be a customer.. and each 
> costumer will be products and sales...
>
> I do not want to build a system, and create "sub-domais" and for each 
> sub-domains a create a "new" clone of my system... it's hard maintenance..
>
> I think these:  each model, I create a FK, and change the Model Manager, 
> to filter all query with User ID... so, show only models to each User.. 
> (thanks for help me here on these)
>
> But I found a issue... for each record, django will use ID.. so, for 
> example:
>
> User 1  - Product 1 - Product ID: 1
> User 1  - Product 2 - Product ID: 2
> User 2  - Product 1 - Product ID: 3
> User 3  - Product 1 - Product ID: 4
>
> Any idea how to do that better?!
>
> Thanks!
> T.·.F.·.A.·.     S+F
> *Fellipe Henrique P. Soares*
>
> e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ 
> 's/(.)/chr(ord($1)-2*3)/ge'
> *Fedora Ambassador: https://fedoraproject.org/wiki/User:Fellipeh 
> <https://fedoraproject.org/wiki/User:Fellipeh>*
> *Blog: *http:www.fellipeh.eti.br
> *GitHub: https://github.com/fellipeh <https://github.com/fellipeh>*
> *Twitter: @fh_bash*
>

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/953c1fff-e3bb-4eba-b621-5e5a7b2be1fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to