django-widget
How to set MaxDate and MinDate of a SelectDateWidget in Django?
How to set MaxDate and MinDate of a SelectDateWidget in Django? I am using that widget for a birthdate field.[详细]
2023-03-31 13:48 分类:问答render a CharField as checkbox in Django admin?
Is it possible to render a Django model CharField as a checkbox? I need t开发者_如何学运维his checkbox on admin edit page as well as the list_editable list page. E.g. when checked, set this CharField[详细]
2023-03-24 19:43 分类:问答django duplicate widget requirements
If we have multiple files defining widget classes, and if widgets have e.g class W1(forms.DateInput): class Media:[详细]
2023-03-23 22:42 分类:问答Django admin GenericForeignKey widget
I\'m creating a Django app where all the models can be related to each other in an order set by the user.I\'m setting all this up using GenericForeignKeys.The kicker is that I need to be able to suppo[详细]
2023-03-22 01:42 分类:问答Is there a 'SelectDateTime' widget for django forms?
Basically the same as the SelectDate Widget b开发者_开发百科ut with an hour component as well. Can\'t seem to find one in the official docs?Here\'s the split date/time widget I use:[详细]
2023-03-18 00:49 分类:问答creating a croppable image field - how to store the widget's data?
I am wondering how to best implement a croppable ImageField in Django. Basically i\'d like to upload images and crop them. For example 开发者_如何学编程using imagAreaSelect[详细]
2023-03-17 17:24 分类:问答Formset with per field widget selection
I am making a front end for custom testing framework.Each test has some associated scripts and each script has some associated parameters and each parameter has a parameter type.I want to be able to c[详细]
2023-03-03 12:04 分类:问答django radioselect render to table
I want to render the django form widget radioselect into a table rather than a ul list.Withlabels in the first row and the radio buttons below in the second row.One cell for each button. e.g.[详细]
2023-02-11 08:31 分类:问答Django SelectDateWidget to show month and year only
Is there a different widget or argument that will allow django to only show/take the year and month input instead of year, month and day开发者_如何转开发?[详细]
2023-02-06 00:23 分类:问答Django custom (multi)widget input validation
What is the correct method for validating input for a custom multiwidget in each of these cases: if I want to implement a custom Field?[详细]
2023-02-05 17:51 分类:问答