inline-formset
Customize inline_formset field display of foreign key
I have a model called Access that links to two other models. class Access (models.Model): portfolio_id = models.ForeignKey(Portfolio)[详细]
2023-02-14 21:27 分类:问答Django admin: Inline of a Many2Many model with 2 foreign keys
after wracking my brain for days, I just hope someone can point me to the right approach. I have 4 Models: Page, Element, Style and Post.[详细]
2023-02-14 03:06 分类:问答Django Inline Formset Issue (list out of range)
This should be simple and I actually had it working yesterday. I have no idea what changed but it\'s now throwing an error.[详细]
2023-02-11 14:03 分类:问答Django Inline Formset Custom Validation only Validates Single Formset at a time
I\'m using Django and have a form with two additional inline formsets. I want to validate that each formset contains at least one populated form. I\'ve written code such that this works but it only wo[详细]
2023-02-02 05:03 分类:问答specify queryset when instantiating an inlineformset
I have the following in views.py to generate a page that shows an inline set of forms for a user\'s \"qualifications\"[详细]
2023-01-24 21:05 分类:问答Make inlineformset in django required
I am new to django (until now, I used the symfony PHP Framework). My problem is this: I have a model Event and model Date. The Date has a foreign key to Event, so that an Event may (or should) have on[详细]
2023-01-19 16:12 分类:问答How to clean a certain field in a InlineFormSet?
I need to clean a specific field in an inline formset, and I can\'t figure out how to do it. I\'ve tried with the formsets def clean(self) method but don\'t know where to save the cleaned va开发者_开[详细]
2023-01-15 10:12 分类:问答How do I detect if a formset has any errors at all in a template?
Thanks to the fantastic inline model formsets in django I have a pretty advanced form with 4 inline formsets. In the template I display each formset in a tab. Everything works really slick but I would[详细]
2023-01-08 13:43 分类:问答Display correct choice text for Django inline formset with two foreign keys
I have successfully used inline formsets to create a recipe input form that consists of a Recipe form (just a model form) and a RecipeIngredient formset.The models are:[详细]
2023-01-06 03:20 分类:问答Django Inline formset for editing multiple related records at once - the right way to go?
When using inline formsets, how does one do paging? I\'m using django 1.1. The situation I\'m in, is that the user needs to be able to edit the related objects quickly and easily (which is why I thin[详细]
2022-12-23 18:11 分类:问答