On Sep 8, 2008, at 2:55 PM, Kurczak wrote:

> On 8 Wrz, 20:37, David Zhou <[EMAIL PROTECTED]> wrote:
>> On Sep 8, 2008, at 2:30 PM, Kurczak wrote:
>>
>>> Is there any way to disable/remove the delete checkbox for inline
>>> formsets ( in admin) ?
>>> I found nothing about it in docs, and I believe there's no way to  
>>> pass
>>> the 'can_delete' parameter to inlineformset_factory. Obviously I can
>>> disable the "Can delete" permission, but the ugly box is still  
>>> there.
>>
>> Have you tried editing the admin templates to not show the checkbox?
> Hi David,
> thanks for your reply.
> I just did in fact, but that affects every single inline form in the
> project, and that's not what I want. There's no way to load inline
> template (in admin) for selected app from what I learned. And I'd
> rather not modify anything in django code because i don't really
> consider that as solution.
> Is there any other way?


You're not really modifying django, since you can include the templats  
in your templates folder, and override them.

If you want app specific admin templates, one way is to wrap the admin  
views -- for example, see:

http://trac.django-cms.org/trac/browser/trunk/cms/admin_views.py

---
David Zhou
[EMAIL PROTECTED]




--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to