Thursday, February 28, 2013

Re: default filtering model admin (crud) using user obj attribute



On Thursday, February 28, 2013 2:37:54 PM UTC+7, Bino Oetomo wrote:
My question is how to make :
1. Car list : Only show cars with company_id=myuser.company_id
Question #1 is solved
2. Create/Update : 'Company choice list' locked to the one with
value=myuser.company_id

I Found the way to set initial value, but still don't know how to make this field displayed-but-un_editable

3. Delete : Only posible for Car.company_id=myuser.company_id

Kindly please give me any of your enlighten.

Sincerely
-bino-

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment