django-bootstrap-modal-forms
django-bootstrap-modal-forms copied to clipboard
A Django plugin for creating AJAX driven forms in Bootstrap modal.
When I use BSModalUpdateView, "Choose File" text is showing instead of image showing from imagefield ``` class MyModelForm(BSModalModelForm): class Meta: model = MyModel fields = '__all__' class MyUpdateView(BSModalUpdateView): model =...
**Form.py** `class OwnerForm(BSModalModelForm): class Meta: model = CompanyOwner fields = ['name', 'filing_type', 'outside_income', 'basis_percentage']` **models.py** `class CompanyOwner(Base): company = models.ForeignKey(Company, on_delete=models.DO_NOTHING) name = models.CharField(max_length=250, default="") user = models.ForeignKey(User, on_delete=models.DO_NOTHING, null=True,...
Currently, async deletes don't work because the js submits them twice (once to validate the form, once to actually perform the action). If we assume deletes don't generally require form...
Catch exception 'ProtectedError' when try to remove a pk with a relation in the model. Only have to define "on_delete=models.PROTECT" in the model fields.
I have a case where my session expire after a modal form is active. When I click on the action button, it calls the URL and it triggers the redirects...
It would be good to be able to extend the data which is sent through the ajax requests. As as example, let us imagine that we want to update several...
```$ git clone https://github.com/trco/django-bootstrap-modal-forms.git $ cd django-bootstrap-modal-forms $ pip install -r requirements.txt $ python manage.py migrate $ python manage.py runserver ``` When following the below instructions in the documentation I...
It seems that there is no support for the Submit button in the form's modal to also use the Bootstrap5 attributes like data-bs-target. I.e. I want to be able to...
Hello guys, First of all thanks for the great extension, I'm probably having problem maybe for not using the extention in the most optimal way, but I'm having a hard...
Hi, since I had to work through the JavaScript for Issiue #213, I have this weird behavior writing documentation for undocumented code. So, here we are. This is basically what...