Re: Crispy forms and its "coercing to unicode need string or buffer nonetype found"

2016-08-12 Thread Constantine Covtushenko
x27;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_checkboxselectmu

Re: Crispy forms and its "coercing to unicode need string or buffer nonetype found"

2016-08-12 Thread RompePC
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 throwe

Re: Crispy forms and its "coercing to unicode need string or buffer nonetype found"

2016-08-11 Thread RompePC
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 {% i

Re: Crispy forms and its "coercing to unicode need string or buffer nonetype found"

2016-08-11 Thread Constantine Covtushenko
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

Crispy forms and its "coercing to unicode need string or buffer nonetype found"

2016-08-11 Thread RompePC
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

Re: Django admin error : coercing to Unicode: need string or buffer, NoneType found

2013-04-24 Thread Wissal Khadrouf WBC
I went the hard way and changed all the null values untill I found out which one caused a problem Thanks 2013/4/24 Shawn Milochik > Ah, I missed that point. You could temporarily create an __init__ override > in your model and put the code there. > > -- > You received this message because you a

Re: Django admin error : coercing to Unicode: need string or buffer, NoneType found

2013-04-24 Thread Shawn Milochik
Ah, I missed that point. You could temporarily create an __init__ override in your model and put the code there. -- 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

Re: Django admin error : coercing to Unicode: need string or buffer, NoneType found

2013-04-24 Thread Wissal Khadrouf WBC
it's the admin view you're telling me to modify I'm sorry I'm faily new to django and I'm afraid I will do something wrong! 2013/4/24 Shawn Milochik > See what I said above about iterating through the fields in your view. Use > logging, print statements, or dump output to a file. > > > On Wed,

Re: Django admin error : coercing to Unicode: need string or buffer, NoneType found

2013-04-24 Thread Shawn Milochik
See what I said above about iterating through the fields in your view. Use logging, print statements, or dump output to a file. On Wed, Apr 24, 2013 at 10:39 AM, Wissal Khadrouf WBC < wissal.khadr...@wbc.ma> wrote: > That's what I was thinking,it's from the data > But I dont know wich field and

Re: Django admin error : coercing to Unicode: need string or buffer, NoneType found

2013-04-24 Thread Wissal Khadrouf WBC
That's what I was thinking,it's from the data But I dont know wich field and how to find out 2013/4/24 Shawn Milochik > Try iterating through your output in the view and look at field, > field.content, and if field.help_text. Somewhere you have a null value > which is None in Python. > > Since

Re: Django admin error : coercing to Unicode: need string or buffer, NoneType found

2013-04-24 Thread Shawn Milochik
Try iterating through your output in the view and look at field, field.content, and if field.help_text. Somewhere you have a null value which is None in Python. Since the traceback you posted (if it's complete) is all from Django's code and not yours, then the error must be in your data. -- You

Django admin error : coercing to Unicode: need string or buffer, NoneType found

2013-04-24 Thread slim
Hello everyone, I have this error since a long time but can't figure it out : *Caught TypeError while rendering: coercing to Unicode: need string or buffer, NoneType found* It happens in admin when I try to add or modify on one of my models (display works fine) This is the

Re: TypeError Exception Value: coercing to Unicode: need string or buffer, dict found

2012-05-26 Thread Peter of the Norse
Usually when I see “TypeError Exception Value: coercing to Unicode” it means that some Model isn't returning the right thing in def __unicode__. Looking at your code, I recommend checking out the canvas returned by desenha_grafico. I wasn’t able to find the documentation for matplotlib, s

Re: TypeError Exception Value: coercing to Unicode: need string or buffer, dict found

2012-05-23 Thread Waleria
f.print_pdf(*args, **kwargs) In my code this line is: dir(canvas.print_pdf) canvas.print_pdf(response, facecolor='w', edgecolor='w') but I do not know about solving. On 23 maio, 09:37, kenneth gonsalves wrote: > On Wed, 2012-05-23 at 05:16 -0700, Waleria wrote: >

Re: TypeError Exception Value: coercing to Unicode: need string or buffer, dict found

2012-05-23 Thread kenneth gonsalves
On Wed, 2012-05-23 at 05:16 -0700, Waleria wrote: > Exception Type: TypeError Exception Value: coercing to Unicode: need > string or buffer, dict found you have to find out where in the code the error is coming. Then you will find that you are passing a dict instead of a string. -- r

TypeError Exception Value: coercing to Unicode: need string or buffer, dict found

2012-05-23 Thread Waleria
Hi, Anyone know how to solve this error? Exception Type: TypeError Exception Value: coercing to Unicode: need string or buffer, dict found Can you help me?? See mycode: http://dpaste.com/751460/ And see my Traceback: http://dpaste.com/750773/ Thanks, -- You received this message because

Re: I am getting TypeError: coercing to Unicode: need string or buffer, long found. Please help.

2012-02-21 Thread Tom Evans
On Tue, Feb 21, 2012 at 5:18 PM, Daniel Marquez wrote: > Wow, I should've caught that. Thanks guys. However, since I needed a > string, what I did was add "default=x" to the integer field as > follows: > > class Phone(models.Model): >        phonenumber = models.IntegerField(default=10) >        p

Re: I am getting TypeError: coercing to Unicode: need string or buffer, long found. Please help.

2012-02-21 Thread Shawn Milochik
On Tue, Feb 21, 2012 at 12:18 PM, Daniel Marquez < daniel.marquez0...@gmail.com> wrote: > Wow, I should've caught that. Thanks guys. However, since I needed a > string, what I did was add "default=x" to the integer field as > follows: > > class Phone(models.Model): >phonenumber = models.In

Re: I am getting TypeError: coercing to Unicode: need string or buffer, long found. Please help.

2012-02-21 Thread Daniel Marquez
Wow, I should've caught that. Thanks guys. However, since I needed a string, what I did was add "default=x" to the integer field as follows: class Phone(models.Model): phonenumber = models.IntegerField(default=10) pub_date = models.DateTimeField('date published') def __unic

Re: I am getting TypeError: coercing to Unicode: need string or buffer, long found. Please help.

2012-02-20 Thread Furbee
As an aside, I would assume you want your phone number field to be a string (models.CharField) instead of integer. Furbee On Mon, Feb 20, 2012 at 2:39 PM, Babatunde Akinyanmi wrote: > @Daniel > Your __unicode__ should always return a string so like Shawn said, > when you check your phone model,

Re: I am getting TypeError: coercing to Unicode: need string or buffer, long found. Please help.

2012-02-20 Thread Babatunde Akinyanmi
@Daniel Your __unicode__ should always return a string so like Shawn said, when you check your phone model, its __unicode__ method should be returning str() or unicode() not int On 2/20/12, Shawn Milochik wrote: > Read the error message in your subject line. Then look at the > __unicode__ method

Re: I am getting TypeError: coercing to Unicode: need string or buffer, long found. Please help.

2012-02-20 Thread Shawn Milochik
Read the error message in your subject line. Then look at the __unicode__ method of your Phone model. It appears that this is the problem, and not the Device model. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

I am getting TypeError: coercing to Unicode: need string or buffer, long found. Please help.

2012-02-20 Thread Daniel Marquez
Hey all, I am a beginner django user. I am going through the tutorial, but when I post the following I get the TypeError: coercing to unicode: class Phone(models.Model): phonenumber = models.IntegerField() pub_date = models.DateTimeField('date published')

Re: Unable to delete certain admin objects. Get "coercing to unicode" error on some, but not all objects.

2010-01-07 Thread rc
eted_objects, current_depth, [u'%s: > > %s' % (force_unicode(capfirst(related.opts.verbose_name)), sub_obj), > > []]) > > > Exception Type: TypeError at /admin/bisite/testcase/20/delete/ > > Exception Value: coercing to Unicode: need string or buffer, int found > >

Re: Unable to delete certain admin objects. Get "coercing to unicode" error on some, but not all objects.

2010-01-06 Thread Karen Tracey
ects, current_depth, [u'%s: > %s' % (force_unicode(capfirst(related.opts.verbose_name)), sub_obj), > []]) > > Exception Type: TypeError at /admin/bisite/testcase/20/delete/ > Exception Value: coercing to Unicode: need string or buffer, int found > > but deleting a "job&

Unable to delete certain admin objects. Get "coercing to unicode" error on some, but not all objects.

2010-01-06 Thread rc
ngo/contrib/admin/util.py" in get_deleted_objects 107. nh(deleted_objects, current_depth, [u'%s: %s' % (force_unicode(capfirst(related.opts.verbose_name)), sub_obj), []]) Exception Type: TypeError at /admin/bisite/testcase/20/delete/ Exception Value: coercing to Un

Re: TypeError: coercing to Unicode: need string or buffer, long found

2010-01-05 Thread E. Hakan Duran
On Tuesday 05 January 2010 21:01:44 Karen Tracey wrote: > ... > Change this to return unicode(self.coupleid) > Thanks! signature.asc Description: This is a digitally signed message part.

Re: TypeError: coercing to Unicode: need string or buffer, long found

2010-01-05 Thread Karen Tracey
On Tue, Jan 5, 2010 at 8:32 PM, E. Hakan Duran wrote: >def __unicode__(self): >return self.coupleid > --- > > Change this to return unicode(self.coupleid) Karen -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

TypeError: coercing to Unicode: need string or buffer, long found

2010-01-05 Thread E. Hakan Duran
Hi all, I am just following the tutorial with minimal coding skills/knowledge. I have a models.py file part of which is shown below: --- # -*- coding: utf-8 -*- from django.db import models import datetime # Create your models here. class Couple(models.Model): coupleid = models.AutoFie

coercing to Unicode: need string or buffer, Connector found

2009-11-04 Thread adelaide_mike
True) unit = models.ForeignKey(Unit) connectortype = models.ForeignKey(Connectortype, blank=True, null=True) def __unicode__(self): return '%s-%s' % (unicode(self.unit), self.connector) class Meta: ordering = ['unit','connector'] u

Re: Exception Value: coercing to Unicode: need string or buffer, ContentType found

2009-07-20 Thread Joshua Russo
On Mon, Jul 20, 2009 at 8:30 PM, sjtirtha wrote: > > class ContentAssoc(models.Model): > object_a = models.PositiveIntegerField() > type_a = models.ForeignKey(ContentType, related_name='type_a') > object_b = models.PositiveIntegerField() > type_b = models.ForeignKey(ContentType, r

Exception Value: coercing to Unicode: need string or buffer, ContentType found

2009-07-20 Thread sjtirtha
e "C:\Python25\lib\site-packages\django\contrib\admin\options.py" in add_view 499. self.log_addition(request, new_object) File "C:\Python25\lib\site-packages\django\contrib\admin\options.py" in log_addition 294. object_repr =

Re: coercing to Unicode: need string or buffer, Post found

2009-07-20 Thread AKK
; > >    def __unicode__(self): > >        return self.comment_post > > > and when i true to add a comment using the admin pages i get : > > > coercing to Unicode: need string or buffer, Post found > > > presuambly this is something to do with  return self

Re: coercing to Unicode: need string or buffer, Post found

2009-07-20 Thread Alex Gaynor
x27;Date comment made') >    comment_body = models.TextField() >    comment_spam = models.BooleanField(default=False) >    comment_author = models.CharField(max_length=5000) > >    def __unicode__(self): >        return self.comment_post > > and when i true to add a comment

coercing to Unicode: need string or buffer, Post found

2009-07-20 Thread AKK
tField() comment_spam = models.BooleanField(default=False) comment_author = models.CharField(max_length=5000) def __unicode__(self): return self.comment_post and when i true to add a comment using the admin pages i get : coercing to Unicode: need string or buffer, Post found presuambly thi

Re: Caught an exception while rendering: coercing to Unicode: need string or buffer, SentenceText found

2009-04-30 Thread Bro
I love you all :) Thanks :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to djang

Re: Caught an exception while rendering: coercing to Unicode: need string or buffer, SentenceText found

2009-04-30 Thread Malcolm Tredinnick
example the same label (or description) in french or in english. > > But when I try to show a Box list (in admin panel) or a Box detail, > I've got this error : > > "Caught an exception while rendering: coercing to Unicode: need string > or buffer, SentenceText f

Re: Caught an exception while rendering: coercing to Unicode: need string or buffer, SentenceText found

2009-04-30 Thread Alex Gaynor
he same label (or description) in french or in english. > > But when I try to show a Box list (in admin panel) or a Box detail, > I've got this error : > > "Caught an exception while rendering: coercing to Unicode: need string > or buffer, SentenceText found" >

Caught an exception while rendering: coercing to Unicode: need string or buffer, SentenceText found

2009-04-30 Thread Bro
#x27;ve got a strange error and in many hour, I haven't manage to fix it. In the Box class, I have 2 ForeignKey to SentenceText because I want for example the same label (or description) in french or in english. But when I try to show a Box list (in admin panel) or a Box detail, I've go

TypeError: coercing to Unicode: need string or buffer, ImageWithThumbnailsFieldFile found

2009-04-29 Thread joker
urn vitrinmenu register.simple_tag(vitrin_menu) but when i add product and open home page i have this error TypeError: coercing to Unicode: need string or buffer, ImageWithThumbnailsFieldFile found --~--~-~--~~~---~--~~ You received this message because you are su

Re: (solved) - coercing to Unicode: need string or buffer, Decimal found

2009-03-22 Thread Timothy
Hi Folks, the problem was def __unicode__(self): return self.b in model-definition Sorry for annoyance Timothy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

coercing to Unicode: need string or buffer, Decimal found

2009-03-22 Thread Timothy
Hi Folks, create a model a = models.DecimalField(max_digits=7, decimal_places=2, null=True) Try do insert values in admin-form. Get error message shown in Subject. What happens here? And how to avoid/solve this problem? DecimalField is premise for that field. Thx for any help Timothy --~

Re: coercing to Unicode: need string or buffer, tuple found

2008-12-09 Thread DragonSlayre
ite-packages/django/contrib/admin/ > > options.py" in add_view > >   499.                 self.log_addition(request, new_object) > > File "/usr/lib/python2.5/site-packages/django/contrib/admin/ > > options.py" in log_addition > >   294.    

Re: coercing to Unicode: need string or buffer, tuple found

2008-12-09 Thread Malcolm Tredinnick
t; in add_view > 499. self.log_addition(request, new_object) > File "/usr/lib/python2.5/site-packages/django/contrib/admin/ > options.py" in log_addition > 294. object_repr = force_unicode(object), > File "/usr/lib/python2.5/site-p

coercing to Unicode: need string or buffer, tuple found

2008-12-09 Thread DragonSlayre
options.py" in add_view 499. self.log_addition(request, new_object) File "/usr/lib/python2.5/site-packages/django/contrib/admin/ options.py" in log_addition 294. object_repr = force_unicode(object), File "/usr/lib/python2.5/site-packages/django/uti

Re: TemplateSyntaxError: Caught an exception while rendering: coercing to Unicode: need string or buffer, long found

2008-09-15 Thread Daniel Roseman
On Sep 15, 7:33 pm, SnappyDjangoUser <[EMAIL PROTECTED]> wrote: > Hi Folks, > > I am receiving an obscure TemplateSyntaxError (Caught an exception > while rendering: coercing to Unicode: need string or buffer, long > found ) when rending a ModelForm that has a foreign key

TemplateSyntaxError: Caught an exception while rendering: coercing to Unicode: need string or buffer, long found

2008-09-15 Thread SnappyDjangoUser
Hi Folks, I am receiving an obscure TemplateSyntaxError (Caught an exception while rendering: coercing to Unicode: need string or buffer, long found ) when rending a ModelForm that has a foreign key back to a specific table. My template correctly renders forms for all models except for this

Re: coercing to Unicode

2008-02-15 Thread Alex Koshelev
__unicode__ method must return string, so def __unicode__(self): return unicode( self.ID ) On Feb 15, 4:23 am, SeanFromIT <[EMAIL PROTECTED]> wrote: > Any ideas what would cause this? > > TypeError at /admin/app/report/ > coercing to Unicode: need string or buffer, long f

coercing to Unicode

2008-02-14 Thread SeanFromIT
Any ideas what would cause this? TypeError at /admin/app/report/ coercing to Unicode: need string or buffer, long found The debug claims that the error is in change_list.html at line 18: {% block result_list %}{% result_list cl %}{% endblock %} The relevant models: # coding=utf-8 class Report

Re: databrowse, coercing to Unicode:

2007-08-14 Thread Michael Radziej
Hi, this looks very similar to this ticket (though I'm not sure): http://code.djangoproject.com/ticket/5146 You might want to add your traceback as an attachment. Ah, you get tracebacks that are easier to read if you click on the link "switch to cut and paste view" (or similar, close to the top

Re: databrowse, coercing to Unicode:

2007-08-10 Thread paulh
Here is the stack: TypeError at /databrowse/ coercing to Unicode: need string or buffer, __proxy__ found Request Method: GET Request URL:http://pan.dynalias.com/databrowse/ Exception Type: TypeError Exception Value:coercing to Unicode: need string or buffer

Re: databrowse, coercing to Unicode:

2007-08-10 Thread Michael Radziej
On Fri, Aug 10, paulh wrote: > > I have tried the databrowse app on a couple of projects, but it fails > on both with the same error. I wondered whether anyone else has seen > this error message: > > coercing to Unicode: need string or buffer, __proxy__ found > > If

databrowse, coercing to Unicode:

2007-08-10 Thread paulh
I have tried the databrowse app on a couple of projects, but it fails on both with the same error. I wondered whether anyone else has seen this error message: coercing to Unicode: need string or buffer, __proxy__ found If you need the whole stack, let me know. Paul Hide