Hi all,
   I hava a question regarding customize Order model.
Now I wanna add a DateTimeField to Order model, and according to "MODEL 
CUSTOMIZATION" part from Mezzanine doc center,
I have succeeded to add the field(named as prefer_time),and it's OK to 
display this field in admin too.

Now, what I want is making it's widget just like what in the admin, i.e. 
display the field as a calendar,thus user can click and select specified 
datetime.

So, I don't wanna change Cartridge source but I just have a try first here.
within __init__ function of OrderForm of shop/form.py, I add this line:
self.fields['prefer_time'].widget = forms.DateTimeInput()

Then I start the server,and refresh page, the DateTimeField prefer_time 
still is a text input.
So, what's more should I do to dispaly this field as a popup calendar 
widget here?

Thanks.
Wesley

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to