Skip to content

Commit 7e030ae

Browse files
committed
Get Django version from django.VERSION
1 parent 1521201 commit 7e030ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dj_elastictranscoder/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from django.contrib.contenttypes.models import ContentType
33

44
import django
5-
if django.get_version() >= '1.8':
5+
if django.VERSION >= (1, 8):
66
from django.contrib.contenttypes.fields import GenericForeignKey
77
else:
88
from django.contrib.contenttypes.generic import GenericForeignKey

dj_elastictranscoder/urls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import django
22

33

4-
if django.get_version() >= '1.9':
4+
if django.VERSION >= (1, 9):
55
from django.conf.urls import url
66
from dj_elastictranscoder import views
77

0 commit comments

Comments
 (0)