You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a model with at least two ForeignKey-ModelFields. Both fields are blank = False. I Use a Modelform and Crispy-Tailwind. If the Foreign-Fields in an object are assigned except one and you commit the form, the form will be invalid. The problem is, that in the next rendering of all ForeignFields the "selected"-HTML-tag are missing and so all Foreign-Fields are unselected. The problem does not occur without Crispy-Tailwind.
I have the same problem. It is related to #90 since the default django django/forms/widgets/select.html template is badly overriden by this package. I fixed this by applying the @tailwindcss/forms plugin and overriding the field.html template of this application to remove the inclusion of the custom select.html.
Hello,
I have a model with at least two ForeignKey-ModelFields. Both fields are blank = False. I Use a Modelform and Crispy-Tailwind. If the Foreign-Fields in an object are assigned except one and you commit the form, the form will be invalid. The problem is, that in the next rendering of all ForeignFields the "selected"-HTML-tag are missing and so all Foreign-Fields are unselected. The problem does not occur without Crispy-Tailwind.
You can see the problem in my repository: https://github.com/datenrebell/bug_in_crispy_tailwind
I hope you can help me with this Issue.
Thanks.
The text was updated successfully, but these errors were encountered: