I have been tring to import the widgets of Admin for the Date and time
to the ModelForm.

django.contrib.admin import widgets
 in that AdminDateWidget() get the date field.

lets say that a there is a modelform in which their is a date field
say name of it is 'date'. the Date field should be uneditable.

class sampleform(ModelForm):
    class Meta:
        model = sample
        fields=['sample', 'date']


Can u suggest me a solution, it would helpful.
thanks in adavnce..
--~--~---------~--~----~------------~-------~--~----~
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