django-widget
Django Caught Warning while rendering: Incorrect integer value: ... for column 'user_id' at row 1
I am building a section for my site that al开发者_Python百科lows hunters to write hunting reports.[详细]
2023-02-05 10:28 分类:问答How can I get the Django SplitDateTimeWidget to recognize AM/PM inputs?
I can\'t for the life of me figure out how to get开发者_如何学运维 the SplitDateTimeWidget (link to ref doc) to recognize AM/PM inputs.[详细]
2023-02-04 03:49 分类:问答Django subclassing multiwidget - reconstructing date on post using custom multiwidget
So my django book is back at university and I\'m struggling to work this one out. I\'ve subclassed django.forms.widgets.MultiWidget like so:[详细]
2023-02-03 22:18 分类:问答Filter many-to-many multiple select field
I have a object (Book) with a many-to-many relation with another object (Category). \'Category\' is used to render subcategories too. The diference between a category and a subcategory is that a cate[详细]
2023-02-01 06:19 分类:问答Django admin widget for custom-sorted relationship
I need some help at designing a model and widget for a custom-sorted M2M relationship. The typical application scenario would be books and authors. In particular, when the order of authors in a book d[详细]
2023-01-24 22:14 分类:问答Django Admin: Using a custom widget for only one model field
I have a DateTimeField field in my model. I wanted to display it as a checkbox widget in the Django admin site. To do this, I created a custom form widget. However, I do not know how to use my custom[详细]
2023-01-24 19:18 分类:问答How to change Django NullBooleanField widget application wide?
I would want to display all NullBooleanFields in开发者_C百科 my application as radio buttons. What\'s the best way to do it?[详细]
2023-01-12 14:34 分类:问答How to change ManyToManyField widget to CheckboxSelectMultiple without overriding field definition in a ModelForm
I have django ModelForm for model with ManyToManyField. I w开发者_高级运维ant to change widget for this field toCheckboxSelectMultiple. Can I do this without overriding a field in a form definition?[详细]
2023-01-06 07:46 分类:问答Django Custom Widget For ManyToMany field
Does anyon开发者_如何转开发e know of a widget that displays 2 select boxes.One shows a list of all object in a model and the other shows the objects which have been selected.The user can then select a[详细]
2023-01-03 01:35 分类:问答Django: Country drop down list?
I have a form for address information.One of the fields is for the address country.Currently this is just a textbox.I would like a drop down list (of ISO 3166 countries) for this.I\'m a django newbie[详细]
2023-01-02 07:02 分类:问答