# HG changeset patch # User Brian Neal # Date 1245620501 0 # Node ID e66e718e1e1e631daccf7ae4f06113d97b1435c6 # Parent 31cb8d55e3a17a37e72b157824ea1c0bb362ef15 For reasons I don't get, the prod server doesn't like auth.models.User. diff -r 31cb8d55e3a1 -r e66e718e1e1e gpp/news/models.py --- 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)