{"action":"created","issue":{"url":"https://api.github.com/repos/django-oscar/django-oscar/issues/1814","labels_url":"https://api.github.com/repos/django-oscar/django-oscar/issues/1814/labels{/name}","comments_url":"https://api.github.com/repos/django-oscar/django-oscar/issues/1814/comments","events_url":"https://api.github.com/repos/django-oscar/django-oscar/issues/1814/events","html_url":"https://github.com/django-oscar/django-oscar/issues/1814","id":96836096,"number":1814,"title":"Your models have changes that are not yet reflected in a migration","user":{"login":"carn1x","id":783281,"avatar_url":"https://avatars.githubusercontent.com/u/783281?v=3","gravatar_id":"","url":"https://api.github.com/users/carn1x","html_url":"https://github.com/carn1x","followers_url":"https://api.github.com/users/carn1x/followers","following_url":"https://api.github.com/users/carn1x/following{/other_user}","gists_url":"https://api.github.com/users/carn1x/gists{/gist_id}","starred_url":"https://api.github.com/users/carn1x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carn1x/subscriptions","organizations_url":"https://api.github.com/users/carn1x/orgs","repos_url":"https://api.github.com/users/carn1x/repos","events_url":"https://api.github.com/users/carn1x/events{/privacy}","received_events_url":"https://api.github.com/users/carn1x/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-23T15:08:21Z","updated_at":"2015-08-07T09:38:25Z","closed_at":null,"body":"On Django 1.7, oscar 1.1, after running `manage.py migrate` for the first time, it seems to run fine without error.\r\n\r\nSubsequent runs of `managy.py migrate` give the following error:\r\n\r\n```\r\n...\r\nRunning migrations:\r\n  No migrations to apply.\r\n  Your models have changes that are not yet reflected in a migration, and so won't be applied.\r\n  Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.\r\n```\r\n\r\nIf I run `manage.py makemigrations` the following files are created:\r\n\r\n**site-packages/oscar/apps/customer/migrations/0002_auto_20150723_2301.py**:\r\n```\r\n# -*- coding: utf-8 -*-\r\nfrom __future__ import unicode_literals\r\n\r\nfrom django.db import models, migrations\r\nimport oscar.models.fields.autoslugfield\r\nimport django.core.validators\r\n\r\n\r\nclass Migration(migrations.Migration):\r\n\r\n    dependencies = [\r\n        ('customer', '0001_initial'),\r\n    ]\r\n\r\n    operations = [\r\n        migrations.AlterField(\r\n            model_name='communicationeventtype',\r\n            name='code',\r\n            field=oscar.models.fields.autoslugfield.AutoSlugField(populate_from=b'name', validators=[django.core.validators.RegexValidator(regex=b'^[a-zA-Z_][0-9a-zA-Z_]*$', message=\"Code can only contain the letters a-z, A-Z, digits, and underscores, and can't start with a digit.\")], editable=False, max_length=128, separator='_', blank=True, help_text='Code used for looking up this event programmatically', unique=True, verbose_name='Code'),\r\n            preserve_default=True,\r\n        ),\r\n    ]\r\n```\r\n\r\n**site-packages/oscar/apps/catalogue/migrations/0006_auto_20150723_2301.py**:\r\n```\r\n# -*- coding: utf-8 -*-\r\nfrom __future__ import unicode_literals\r\n\r\nfrom django.db import models, migrations\r\nimport django.core.validators\r\nimport oscar.core.validators\r\n\r\n\r\nclass Migration(migrations.Migration):\r\n\r\n    dependencies = [\r\n        ('catalogue', '0005_auto_20150604_1450'),\r\n    ]\r\n\r\n    operations = [\r\n        migrations.AlterField(\r\n            model_name='productattribute',\r\n            name='code',\r\n            field=models.SlugField(max_length=128, verbose_name='Code', validators=[django.core.validators.RegexValidator(regex=b'^[a-zA-Z_][0-9a-zA-Z_]*$', message=\"Code can only contain the letters a-z, A-Z, digits, and underscores, and can't start with a digit\"), oscar.core.validators.non_python_keyword]),\r\n            preserve_default=True,\r\n        ),\r\n```"},"comment":{"url":"https://api.github.com/repos/django-oscar/django-oscar/issues/comments/128657362","html_url":"https://github.com/django-oscar/django-oscar/issues/1814#issuecomment-128657362","issue_url":"https://api.github.com/repos/django-oscar/django-oscar/issues/1814","id":128657362,"user":{"login":"carn1x","id":783281,"avatar_url":"https://avatars.githubusercontent.com/u/783281?v=3","gravatar_id":"","url":"https://api.github.com/users/carn1x","html_url":"https://github.com/carn1x","followers_url":"https://api.github.com/users/carn1x/followers","following_url":"https://api.github.com/users/carn1x/following{/other_user}","gists_url":"https://api.github.com/users/carn1x/gists{/gist_id}","starred_url":"https://api.github.com/users/carn1x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carn1x/subscriptions","organizations_url":"https://api.github.com/users/carn1x/orgs","repos_url":"https://api.github.com/users/carn1x/repos","events_url":"https://api.github.com/users/carn1x/events{/privacy}","received_events_url":"https://api.github.com/users/carn1x/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T09:38:25Z","updated_at":"2015-08-07T09:38:25Z","body":"Seems a new issue caused by the Validator change\r\nhttps://github.com/django-oscar/django-oscar/commit/700242330a6d3fe12159bff276c94b349bfadde6"}}