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
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
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
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
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
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
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
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,
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
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
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
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
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
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:
>
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
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
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
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
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
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,
@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
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
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')
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
>
>
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&
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
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.
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
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
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
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
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 =
;
> > 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
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
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
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
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
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"
>
#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
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
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
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
--~
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.
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
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
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
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
__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
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
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
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
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
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
53 matches
Mail list logo