Remove contenttypes.generic import fallbacks
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
from django import VERSION
|
||||
|
||||
if VERSION < (1, 9):
|
||||
from django.contrib.contenttypes.generic import GenericForeignKey
|
||||
else:
|
||||
from django.contrib.contenttypes.fields import GenericForeignKey
|
||||
|
||||
from django.contrib.contenttypes.fields import GenericForeignKey
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.db import models
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
Reference in New Issue
Block a user