Hi Rompe,

>From you have posted I can suggest check your model.
Can you post here code of it?

Regards,

On Thu, Aug 11, 2016 at 1:11 PM, RompePC <[email protected]> wrote:

> I was working on an admin panel, and when I try to get to the add/update
> view of the model, it just throws this error. I've been checking Google for
> all the morning, but the solutions I've just found aren't the problem I've
> (no problem with unicode, I check if the related object is None, etc.).
>
> The exception throwed is (line 28):
>
>
> coercing to Unicode: need string or buffer, NoneType found
>
> 18
> 19 {% if field|is_checkboxselectmultiple %}
> 20 {% include 'bootstrap3/layout/checkboxselectmultiple.html' %}
> 21 {% endif %}
> 22
> 23 {% if field|is_radioselect %}
> 24 {% include 'bootstrap3/layout/radioselect.html' %}
> 25 {% endif %}
> 26
> 27 {% if not field|is_checkboxselectmultiple and not field|is_radioselect
> %}
> 28 {% if field|is_checkbox and form_show_labels %}
> 29 <label for="{{ field.id_for_label }}" class="{% if
> field.field.required %} requiredField{% endif %}">
> 30 {% crispy_field field %}
> 31 {{ field.label|safe }}
> 32 {% include 'bootstrap3/layout/help_text_and_errors.html' %}
> 33 </label>
> 34 {% else %}
> 35 <div class="controls {{ field_class }}">
> 36 {% crispy_field field %}
> 37 {% include 'bootstrap3/layout/help_text_and_errors.html' %}
> 38 </div>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/65bdca52-beba-4e02-a39a-5694ccbfbd66%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/65bdca52-beba-4e02-a39a-5694ccbfbd66%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK52boVK5TA1z6g0L68KFwzNtw8nTtXf6%3DQ49YSzgrW_wy-Dsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to