We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1521201 commit 7e030aeCopy full SHA for 7e030ae
dj_elastictranscoder/models.py
@@ -2,7 +2,7 @@
2
from django.contrib.contenttypes.models import ContentType
3
4
import django
5
-if django.get_version() >= '1.8':
+if django.VERSION >= (1, 8):
6
from django.contrib.contenttypes.fields import GenericForeignKey
7
else:
8
from django.contrib.contenttypes.generic import GenericForeignKey
dj_elastictranscoder/urls.py
@@ -1,7 +1,7 @@
1
-if django.get_version() >= '1.9':
+if django.VERSION >= (1, 9):
from django.conf.urls import url
from dj_elastictranscoder import views
0 commit comments