Am running into ValueError, here is the full traceback, the end of which is:
Exception Type: ValueError at /admin/blog/post/add/
Exception Value: invalid literal for int() with base 10: 'treef'
I'm using AutoSlugField
from django-command-extensions.
I am trying to get django-tagging working, this is my models.py:
class Post(models.Model):
"""Blog post model."""
title = models.CharField('title', max_length=120)
slug = AutoSlugField('slug', unique=True, max_length=120, primary_key=True)
body = models.TextField('body')
published = models.DateTimeField('publish', default=datetime.now)
category = models.ForeignKey(Category)
tags = TagField()
class Meta:
verbose_name = ('post')
verbose_name_plural = ('posts')
ordering = ('-published',)
get_latest_by = 'published'
def __unicode__(self):
return self.title