Hi there,

I apprecciate the help, but the models' code is secret (I'm not allowed to 
show it anywhere).
It is like it sends a non-existent field to the form, and don't know why. 
And the model is the same as the previous version, its very weird. And 
didn't found anything about that error in a crispy-form.
I'm sorry for the problems.

El jueves, 11 de agosto de 2016, 21:23:59 (UTC+2), Constantine Covtushenko 
escribió:
>
> 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 <durillo...@gmail.com 
> <javascript:>> 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 django-users...@googlegroups.com <javascript:>.
>> To post to this group, send email to django...@googlegroups.com 
>> <javascript:>.
>> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/7dd1434a-da42-441b-a471-30e7db9c47d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to