I
I
iczczcz2018-06-08 19:06:12
Django
iczczcz, 2018-06-08 19:06:12

How to fix in Django?

There is a form

class FormCreateEdit(forms.ModelForm):
    class Meta:
        model = Posts
        fields = [
            "title",
            "content",
            "image",
            "category",
        ]

Output in a template
<form action="." method="POST" enctype="multipart/form-data">
                {% csrf_token %}
                {{ form|crispy }}
                <br>
                <input type='submit' class='btn btn-default' value='Create'>
            </form>

The category field is not
showing up I disabled mdbootstrap and it
appears mdbootstrap seems to be overriding my field display
How can I fix this?
When viewing the page code, everything is fine, there is this select,
but it is not shown

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question