We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a711cc6 commit ef59c4fCopy full SHA for ef59c4f
dj_elastictranscoder/models.py
@@ -1,6 +1,7 @@
1
from django.db import models
2
from django.contrib.contenttypes.models import ContentType
3
-if django.version > 1.8:
+import django
4
+if django.get_version() > '1.8':
5
from django.contrib.contenttypes.fields import GenericForeignKey
6
else:
7
from django.contrib.contenttypes.generic import GenericForeignKey
0 commit comments