Mercurial > public > sg101
diff gpp/donations/models.py @ 259:75ea1a8be7f2
Fix some old import problems where I used 'from django.contrib import auth' instead of 'from django.contrib.auth.models import User'. Also some formatting changes while I was in there.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 21 Sep 2010 23:49:05 +0000 |
parents | 9fabeabd89d4 |
children | 2177a71b680c |
line wrap: on
line diff
--- a/gpp/donations/models.py Tue Sep 21 23:08:36 2010 +0000 +++ b/gpp/donations/models.py Tue Sep 21 23:49:05 2010 +0000 @@ -5,7 +5,7 @@ import decimal from django.db import models -from django.contrib import auth +from django.contrib.auth.models import User from django.conf import settings @@ -46,7 +46,7 @@ class Donation(models.Model): """Model to represent a donation to the website.""" - user = models.ForeignKey(auth.models.User, null=True, blank=True) + user = models.ForeignKey(User, null=True, blank=True) is_anonymous = models.BooleanField() test_ipn = models.BooleanField(default=False, verbose_name="Test IPN") txn_id = models.CharField(max_length=20, verbose_name="Txn ID")