summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2017-02-15 15:01:01 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2017-02-15 15:41:44 (GMT)
commita6ec6eb908b7b46f5e4028829b8b0f2542155015 (patch)
treeb3f84063b99ceaf5d7012e686cb1cffa4bbef498
parent4ecbb2e988884111bb793829579cb00b72b790e8 (diff)
downloadwelco-a6ec6eb908b7b46f5e4028829b8b0f2542155015.zip
welco-a6ec6eb908b7b46f5e4028829b8b0f2542155015.tar.gz
welco-a6ec6eb908b7b46f5e4028829b8b0f2542155015.tar.bz2
alfortville: use new Django contenttypes.fields (#15007)
-rw-r--r--welco/contrib/alfortville/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/welco/contrib/alfortville/models.py b/welco/contrib/alfortville/models.py
index f6920df..cb1d12e 100644
--- a/welco/contrib/alfortville/models.py
+++ b/welco/contrib/alfortville/models.py
@@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from django.contrib.contenttypes.models import ContentType
-from django.contrib.contenttypes import generic
+from django.contrib.contenttypes.fields import GenericForeignKey
from django.db import models
from django.utils.translation import ugettext_lazy as _
@@ -35,7 +35,7 @@ class Inbox(models.Model):
default=INFO)
source_type = models.ForeignKey(ContentType, null=True)
source_pk = models.PositiveIntegerField(null=True)
- source = generic.GenericForeignKey('source_type', 'source_pk')
+ source = GenericForeignKey('source_type', 'source_pk')
done = models.BooleanField(default=False)
comments = models.TextField(blank=True, null=True, verbose_name=_('Comments'))
last_update_timestamp = models.DateTimeField(auto_now=True, null=True)