You need to create a custom ReadOnlyField that subclasses the
FileField.
You also need to create a ReadOnlyWidget that subclasses Forms.Widget

The link below, explains how the whole thing hangs together.


http://lazypython.blogspot.com/search?updated-min=2008-01-01T00%3A00%3A00-05%3A00&updated-max=2009-01-01T00%3A00%3A00-05%3A00&max-results=35

On 17 Feb, 07:22, guptha <gjango...@gmail.com> wrote:
> hi ,
> i need to know how to create a non editable field in admin site .I
> tried , one like  below
>
> acct_number=models.CharField(max_lenght=100,editable=False)
>
> but it doesn't work
> please any other ideas,
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to