changeset 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 (2009-06-21)
parents 31cb8d55e3a1
children 04dcbf008bcc
files gpp/news/models.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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)