Mercurial > public > sg101
diff gpp/news/models.py @ 49:e66e718e1e1e
For reasons I don't get, the prod server doesn't like auth.models.User.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 21 Jun 2009 21:41:41 +0000 |
parents | dbd703f7d63a |
children | e249b5f9d180 |
line wrap: on
line diff
--- a/gpp/news/models.py Sun Jun 21 21:31:24 2009 +0000 +++ b/gpp/news/models.py Sun Jun 21 21:41:41 2009 +0000 @@ -4,7 +4,7 @@ import datetime from django.db import models -from django.contrib import auth +from django.contrib.auth.models import User from tagging.fields import TagField @@ -27,7 +27,7 @@ class PendingStory(models.Model): """Stories submitted by users are held pending admin approval""" title = models.CharField(max_length=255) - submitter = models.ForeignKey(auth.models.User) + submitter = models.ForeignKey(User) category = models.ForeignKey(Category) short_text = models.TextField() long_text = models.TextField(blank=True) @@ -61,7 +61,7 @@ class Story(models.Model): """Model for news stories""" title = models.CharField(max_length=255) - submitter = models.ForeignKey(auth.models.User) + submitter = models.ForeignKey(User) category = models.ForeignKey(Category) short_text = models.TextField() long_text = models.TextField(blank=True)