File tree 2 files changed +15
-4
lines changed
2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ pip-delete-this-directory.txt
33
33
34
34
# Tox
35
35
.tox /
36
+ .cache /
37
+ .python-version
36
38
37
39
# VirtualEnv
38
40
.venv /
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
# Generated by Django 1.9.6 on 2016-05-13 08:57
3
3
from __future__ import unicode_literals
4
+ from distutils .version import LooseVersion
4
5
5
6
from django .db import migrations , models
6
7
import django .db .models .deletion
8
+ import django
7
9
8
10
9
11
class Migration (migrations .Migration ):
10
12
11
- dependencies = [
12
- ('contenttypes' , '0002_remove_content_type_name' ),
13
- ('example' , '0001_initial' ),
14
- ]
13
+ # TODO: Must be removed as soon as Django 1.7 support is dropped
14
+ if django .get_version () < LooseVersion ('1.8' ):
15
+ dependencies = [
16
+ ('contenttypes' , '0001_initial' ),
17
+ ('example' , '0001_initial' ),
18
+ ]
19
+ else :
20
+ dependencies = [
21
+ ('contenttypes' , '0002_remove_content_type_name' ),
22
+ ('example' , '0001_initial' ),
23
+ ]
15
24
16
25
operations = [
17
26
migrations .CreateModel (
You can’t perform that action at this time.
0 commit comments