DragonionS
DragonionS

Reputation: 183

Django and NoneType object is not callable

I have such model:

class Body(models.Model):
    point = models.TextField()
    description = models.TextField(blank = True)
    order = models.IntegerField(default = 0, blank = True)

When I am adding in django admin interface a new record I am getting

'NoneType' object is not callable

with TemplateSyntaxError message. So, record is successfully created but I can't see the list of records in django admin panel.

http://dpaste.com/hold/152729/ this is the link to the traceback from django

What should I do?

Upvotes: 2

Views: 5761

Answers (1)

DragonionS
DragonionS

Reputation: 183

I've found that

order = models.IntegerField(default = 0, blank = True)

was the reason of my problem. When I've changed 'order' name to something else I've got my problem fixed. :)

Upvotes: 5

Related Questions