829 questions
0 votes
1 answer
42 views
Django Forms - How can I update a form with a disabled required field?
I have a Django Model with one required field (shpid). I want to set this field to disabled when updating the form. Although the value of this field is shown and disabled when the template is first ...
1 vote
1 answer
136 views
Django Crispy Forms with Tailwind CSS 4.0: Unwanted downward caret appears within the form
Update: I appreciate all the suggestions. This seems to be a known issue (GitHub). A suggested workaround is to simply ignore the inserted element with the following rule in my css: select ~ .pointer-...
2 votes
2 answers
266 views
How to style a Django crispy-form label
I'm developing a small project using Django v5 and Bootstrap v5. At this stage I'm just playing around with the registration and login pages but I'd like to style the form using crispy-form and the ...
-1 votes
1 answer
74 views
BooleanField form Checkboxes always empty in Django
I have a Model form that has some checkboxes. The database has values for these records for all rows. My form displays with empty checkboxes all the time. I can submit values via the checkbox and the ...
0 votes
1 answer
187 views
Forms not displaying properly when using django with tailwind and crispy forms
When using {{ form|crispy}} filter in the index.html file, the form input fields are not shown with borders as they should be when using Crispy Forms. I have followed the BugBytes YouTube video ...
0 votes
0 answers
23 views
crispy forms inline radios: how to position the help text below the radio buttons instead of beside them?
In my form, the help text is positioned below the input field. However, for InlineRadios, the help text is placed to the right of the field. I can't figure out how to move the InlineRadio help text ...
0 votes
0 answers
18 views
interlace related fields from 2 forms with crispy-forms
I need to accept dimensions from users where they can change units between inches and mm. From the user's perspective they will see a input field and next to it select dropdown of options in/mm with ...
1 vote
1 answer
28 views
django-crispy-forms split form in two divs layout
I want to split a form into two divs with their own css_id so I can ajax update second div based on choices in the first. Problem is that my resulting form does not have divs with ids 'pbid' and 'pb-...
0 votes
1 answer
58 views
Issue with django-crispy-forms and django-filter: CSS class not applying to custom ChoiceFilter field
I'm using django-filter and django-crispy-forms to create a filter form in Django, but I'm having trouble applying a CSS class to a custom ChoiceFilter field. The CSS class is successfully applied to ...
0 votes
1 answer
42 views
Django + Crispy form - Readonly field for specific usergroup/user without Javascript : possible?
I know how to set a field readonly using the helper, but I'd like to disable values changes for specific users. The only way I found consists in adding a condition in the the form taking in account ...
0 votes
1 answer
122 views
Prepend Text in Crispy Forms - Django
I have a form that works generally as expected, but I am trying to prepend some text on one of the fields to make it more user-friendly. In this case, all entries in the "RFP Control Number" ...
1 vote
2 answers
232 views
Send variable to Django crispy forms
I have 2 HTML pages choose_type.html and post_form.html. On choose_type.html: {% extends "blog/base.html" %} {% load pagination_extras %} {% block content %} <body> &...
0 votes
1 answer
56 views
Delete div and label for that div without label id
Using Crispy forms in Django app, I the HTML code: <div id="div_id_pripadnost" class="form-group"> <label for="id_pripadnost_0" class=""> ...
0 votes
1 answer
87 views
ModuleNotFoundError: No module named 'crispy_bootstrap5accounts'
I just installed django-crispy-forms and crispy-bootstrap5. Then I followed the official website guide into updating the "setting.py" file then when I run the server from "python manage....
0 votes
1 answer
70 views
Django crispy-form, data from the form is not saved in the database
I'm just starting my adventure with Django. I wrote a small application in which, of course, there is a form that collects data from the user. This form in the standard version of Django doesn't look ...