Mercurial > public > sg101
diff gpp/weblinks/models.py @ 237:1085dc38399e
In support of #92, create management commands to import link and podcast data from the old site in CSV format.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 11 Sep 2010 21:07:28 +0000 |
parents | 71fd8454688b |
children | 7e8d2dda99e3 |
line wrap: on
line diff
--- a/gpp/weblinks/models.py Fri Sep 10 03:22:01 2010 +0000 +++ b/gpp/weblinks/models.py Sat Sep 11 21:07:28 2010 +0000 @@ -4,7 +4,7 @@ import datetime from django.db import models -from django.contrib import auth +from django.contrib.auth.models import User class Category(models.Model): @@ -34,7 +34,7 @@ title = models.CharField(max_length=128) url = models.URLField(verify_exists=False, db_index=True) description = models.TextField(blank=True) - user = models.ForeignKey(auth.models.User) + user = models.ForeignKey(User) date_added = models.DateField() class Meta: @@ -93,7 +93,7 @@ class FlaggedLink(models.Model): """Model to represent links that have been flagged as broken by users""" link = models.ForeignKey(Link) - user = models.ForeignKey(auth.models.User) + user = models.ForeignKey(User) date_flagged = models.DateField(auto_now_add = True) approved = models.BooleanField(default = False, help_text = 'Check this and save to remove the referenced link from the database')