Skip to content

Commit

Permalink
added latest migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Walter Renner committed Dec 4, 2017
1 parent e8d0234 commit dfa303b
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 3 deletions.
8 changes: 8 additions & 0 deletions make_migrations.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import os
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.test_settings")
from django.core.management import execute_from_command_line
args = sys.argv + ["makemigrations", "userproperty"]
execute_from_command_line(args)
12 changes: 9 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[tox]
envlist =
py{27,36}-django{18,111},
py27-django18-makemigrations
lint

[testenv]
Expand All @@ -16,6 +17,11 @@ commands =
coverage report

[testenv:lint]
basepython=python2.7
deps=pylint
commands=pylint userproperty
skip_install = true
deps = pylint
commands = - pylint userproperty

[testenv:py27-django18-makemigrations]
skip_install = true
commands =
python make_migrations.py
30 changes: 30 additions & 0 deletions userproperty/migrations/0002_auto_20171204_0732.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models
from django.conf import settings


class Migration(migrations.Migration):

dependencies = [
('userproperty', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='globalproperty',
name='name',
field=models.SlugField(max_length=64, verbose_name='name', unique=True),
),
migrations.AlterField(
model_name='userproperty',
name='name',
field=models.SlugField(max_length=64, verbose_name='name'),
),
migrations.AlterField(
model_name='userproperty',
name='user',
field=models.ForeignKey(verbose_name='user', to=settings.AUTH_USER_MODEL, related_name='user_properties'),
),
]

0 comments on commit dfa303b

Please sign in to comment.