Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit a711cc6

Browse files
author
vinit Kumar
committed
fixes StreetVoice#8, deprecation for GenericForeignKey in Django1.9 and bump
version This commit introduces a backward compatible import where the warning is removed for django1.8 and ensure that the project will run on Django1.9 when the support for GenericForeignKey will be removed from the generic module in contenttype.
1 parent 8f0e54f commit a711cc6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

dj_elastictranscoder/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.9.3'
1+
__version__ = '0.9.4'

dj_elastictranscoder/models.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
from django.db import models
22
from django.contrib.contenttypes.models import ContentType
3-
from django.contrib.contenttypes.generic import GenericForeignKey
3+
if django.version > 1.8:
4+
from django.contrib.contenttypes.fields import GenericForeignKey
5+
else:
6+
from django.contrib.contenttypes.generic import GenericForeignKey
47

58

69
class EncodeJob(models.Model):

0 commit comments

Comments
 (0)