inline-formset
formset of inline formsets in django 1.3+
I have a product model, and a price model. The price model has a FK to the product model. There may be multiple prices (depending on the quantity of units sold). Previous to django 1.2.5 http://yergle[详细]
2023-04-11 02:27 分类:问答Django inline formset - get saved object
if formset.is_valid(): formset.save() Hello, how can i get saved in开发者_如何学Goline formset object? In fact my formset hase no unique field.formset.save() will return a list of instances saved.[详细]
2023-03-31 08:32 分类:问答Getting the foreign key instance within a form_class used in a Django admin inline
I have an admin inline that uses a custom form class. How can I access the parent instance (foreign key) from within the functions of that form class?[详细]
2023-03-23 12:45 分类:问答when adding a new inline to my formset, my datepickers stop working
Bit of a strange one today. I\'ve a very basic project. A form and added to that I have an inline form. It\'s books to authors.[详细]
2023-03-20 23:14 分类:问答How to imitate django admin's OneToOneField optional form
I would like to imitate the functionality that the Django Admin site offers when a model has a OneToOneField to another model, where it is optional to fill the form for the OneToOne model. The form fo[详细]
2023-03-16 03:15 分类:问答django: How to use inlineformset within the formwizard?
I\'m displaying two separate sample projects. The first is a Contact related and shows the principle of using the formwizard. The second is an ingredients to recipes related project which shows how to[详细]
2023-03-13 01:23 分类:问答Django's Inline Forms
I am trying to create records using an inline formSet while at the same time creating a record with a normal form whose primary key is the foreign key for the inline formSet all on the same HTML page.[详细]
2023-03-12 14:11 分类:问答How do I make a foreign key appear as its own form instead of a dropdown menu?
I\'m trying to create a formset for a list of movies like so: class MovieList(models.Model): user = 开发者_运维知识库models.ForeignKey(User)[详细]
2023-03-08 09:22 分类:问答Django inlineformset - custom save method
This is my models.py class Invoices(models.Model): ... sum_w_vat = models.DecimalField(max_digits=7, decimal_places=2, default=0)[详细]
2023-03-07 21:06 分类:问答Django inline formset throws IndexError when users are concurrently editing
Updated: I now think this is an existing bug in Django reported as Ticket 14642 This has been driving me crazy and I thought it was due to my Form code but I realize now I can recreate it using my m[详细]
2023-02-15 01:15 分类:问答