Use a polyfill for Enum on Python<3.4

This commit is contained in:
Raphael Michel
2014-10-07 13:08:15 +02:00
parent 07245b89e5
commit d633f4317c
2 changed files with 8 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
from enum import Enum
try:
from enum import Enum
except ImportError:
from flufl.enum import Enum
from django.apps import apps