Django calendar widget in a custom form -
Uses on pages, but I did not know how to add it to a custom form.
I got some more questions about the same subject here, but they were all old, complex and not working.
Is there any way to add the widget to my calendar in a calendar widget?
All widgets used by DJGengo-admin are in the Django / Diskab / Admin / Widgetspa file. Just use that form as a normal widget. You want AdminDateWidget. Import django.contrib.admin.widgets from
AdminDateWidget class MyForm (form): my_field = DateField (widget = AdminDateWidget) with this calendar Will make a date-picker. You can try to customize it to expand it or create new widgets from a new section with inspiration from AdminDateWidget.
Comments
Post a Comment