Why can't the first two users edit the data the same way as user 3?

I'd recommend overriding get_readonly_fields() on the ModelAdmin for A so 
that all fields are readonly for the users who aren't allowed to edit model 
A. They'll still need the "can edit" permission for model A.
https://docs.djangoproject.com/en/1.7/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_readonly_fields

I _think_ the inlines will automatically figure out if the user has 
permission to edit them. Otherwise, you can override get_inline_instances() 
to remove the inlines if they can't edit them.
https://docs.djangoproject.com/en/1.7/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_inline_instances

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8e764a78-bd95-41cd-8de0-d3781d1979b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to