django-formset
django-formset copied to clipboard
The missing widgets and form manipulation library for Django
The documentation describes how to set up a form collection for creating a new entry with a one-to-many relationship (https://django-formset.fly.dev/model-collections/#one-to-many-relations). However, it does not describe how to use a FormCollection...
If the file upload uses attribute `{'accept': 'image/jpeg'}` it still is possible to upload files using drag & drop. There should be a better validation.
First of all I would like to thank you for your fast work with 1.5 version of Formset. I've just started testing it for my application. I use form with...
**Given** ```python #models.py class ParentModel(self): name = models.CharField class ChildModel(self): parent = models.ForeignKey(Parent, related_name='children', on_delete=models.CASCADE) name = models.CharField #forms.py class ChildForm(ModelForm): class Meta: model = ChildModel() fields = '__all__' class...
When using the DualSortableSelector with a many-to-many relationship and a through table, the database is populated correctly, however the selector displays all available options on the right-hand side when there...
When using the UploadedFileInput.On creation, uploaded image is stored successfully, however when modifying the model but not changing the image, or when deleting the model, the following validation error is...
``` class Block(models.Model): name = models.CharField(max_length=100) school = models.ForeignKey(Officedet, on_delete=models.CASCADE ,null=True,blank=True) def __str__(self): return f"{self.name} ({self.school.office_code}-{self.school.office_name})" class Floor(models.Model): number = models.CharField(max_length=50) block = models.ForeignKey(Block, on_delete=models.CASCADE) school = models.ForeignKey(Officedet, on_delete=models.CASCADE ,null=True,blank=True)...
In the template example we prepared below, CRUD operations can be performed well with the {{ form }} tag as a field by field. However, we cannot perform a similar...
Here is a fix for the problem encountered here [61](https://github.com/jrief/django-formset/issues/61#issue-1705510835) (I encountered the same problem). I went through all the related discussions and considered all aspects (like here [what assertUniqueName...
Improved documentation regarding FormCollections with many-to-one relationships as per #110. Please let me know if it is clear enough or if you want me to change anything.