summaryrefslogtreecommitdiff
path: root/news/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-12-21 19:02:22 -0600
committerDan McGee <dan@archlinux.org>2011-01-08 11:49:37 -0600
commitc18cd21e536592b6ed482126ee423f38b9ac9257 (patch)
tree98846307688f44114f0721f91cb6e43e49b65fd3 /news/models.py
parent8d7941c1ddc40623d7050bb0809453603f6ccad9 (diff)
Remove automatic ID column definitions
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'news/models.py')
-rw-r--r--news/models.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/news/models.py b/news/models.py
index e2486c96..c2d644b7 100644
--- a/news/models.py
+++ b/news/models.py
@@ -2,7 +2,6 @@ from django.db import models
from django.contrib.auth.models import User
class News(models.Model):
- id = models.AutoField(primary_key=True)
slug = models.SlugField(max_length=255, unique=True)
author = models.ForeignKey(User, related_name='news_author')
postdate = models.DateTimeField("post date", auto_now_add=True, db_index=True)