On Dec 21, 2:20 am, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Dec 20, 2007 9:03 AM, GodOfGeeks <[EMAIL PROTECTED]> wrote:
>
> > The problem is that when I set the fields to editable=False then they
> > won't be visible in the adminModel
>
> The admin interface is deliberately designed not to have
> "display-only" data -- the thinking has been that things which can't
> be edited aren't really being "administered".
>
> So your best bet is probably to write a custom template to override
> the admin template for that specific model and, rather than trying to
> force the admin to display the fields without making them editable,

try using

<input type="text" disabled="disabled"...>


> simply insert some template code which displays the values (IIRC the
> object being edited is represented in the template by the variable
> "original").
>
> --
> "Bureaucrat Conrad, you are technically correct -- the best kind of correct."
--~--~---------~--~----~------------~-------~--~----~
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