I solved this.
It seems my models.py was wrong, I got a few FloatField without
max_digits and decimal_places set (it was coming from a 0.97pre
project).
On a remote Apache server I wasn't seeing the nice complaints that
normally Django dev-server shouts.
On 10 Ott, 18:48, Gio <[EMAIL PROTECTED]
if I do:
articolo = Articolo.objects.get(codice = c)
print articolo.id
everything goes right, it prints the right number
I'm on Django 0.96, btw
On 11 Ott, 05:38, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wro
Are you sure that articolo is not None or that c is not an int or
None?
On Oct 10, 12:48 pm, Gio <[EMAIL PROTECTED]> wrote:
> I get this error:
> unsupported operand type(s) for +: 'NoneType' and 'int'
>
> referred to this snippet of code, debug informations are pointing to
> the line where the C
I get this error:
unsupported operand type(s) for +: 'NoneType' and 'int'
referred to this snippet of code, debug informations are pointing to
the line where the ChangeManipulator is:
-
articolo = Articolo.objects.get(codice = c)
try:
4 matches
Mail list logo