{"action":"created","issue":{"url":"https://api.github.com/repos/jleclanche/django-push-notifications/issues/175","labels_url":"https://api.github.com/repos/jleclanche/django-push-notifications/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/jleclanche/django-push-notifications/issues/175/comments","events_url":"https://api.github.com/repos/jleclanche/django-push-notifications/issues/175/events","html_url":"https://github.com/jleclanche/django-push-notifications/issues/175","id":92055026,"number":175,"title":"Makemigrations creates a new migration when running python 3","user":{"login":"Ian-Foote","id":1843202,"avatar_url":"https://avatars.githubusercontent.com/u/1843202?v=3","gravatar_id":"","url":"https://api.github.com/users/Ian-Foote","html_url":"https://github.com/Ian-Foote","followers_url":"https://api.github.com/users/Ian-Foote/followers","following_url":"https://api.github.com/users/Ian-Foote/following{/other_user}","gists_url":"https://api.github.com/users/Ian-Foote/gists{/gist_id}","starred_url":"https://api.github.com/users/Ian-Foote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ian-Foote/subscriptions","organizations_url":"https://api.github.com/users/Ian-Foote/orgs","repos_url":"https://api.github.com/users/Ian-Foote/repos","events_url":"https://api.github.com/users/Ian-Foote/events{/privacy}","received_events_url":"https://api.github.com/users/Ian-Foote/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jleclanche/django-push-notifications/labels/migrations","name":"migrations","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-30T10:28:40Z","updated_at":"2015-08-18T12:58:53Z","closed_at":null,"body":"Running `python manage.py makemigrations` on a python 3 project creates the following migration:\r\n\r\n```python\r\n# -*- coding: utf-8 -*-\r\nfrom __future__ import unicode_literals\r\n\r\nfrom django.db import models, migrations\r\nimport push_notifications.fields\r\n\r\n\r\nclass Migration(migrations.Migration):\r\n\r\n    dependencies = [\r\n        ('push_notifications', '0001_initial'),\r\n    ]\r\n\r\n    operations = [\r\n        migrations.AlterField(\r\n            model_name='apnsdevice',\r\n            name='device_id',\r\n            field=models.UUIDField(blank=True, null=True, verbose_name='Device ID', help_text='UDID / UIDevice.identifierForVendor()', db_index=True),\r\n        ),\r\n        migrations.AlterField(\r\n            model_name='gcmdevice',\r\n            name='device_id',\r\n            field=push_notifications.fields.HexIntegerField(blank=True, verbose_name='Device ID', help_text='ANDROID_ID / TelephonyManager.getDeviceId() (always as hex)', null=True, db_index=True),\r\n        ),\r\n    ]\r\n```\r\n\r\nThis does not happen on python 2.\r\n\r\nI suspect this is caused by the presence of `bytes` in the [initial migration](https://github.com/jleclanche/django-push-notifications/blob/master/push_notifications/migrations/0001_initial.py#L23) (and [here](https://github.com/jleclanche/django-push-notifications/blob/master/push_notifications/migrations/0001_initial.py#L39))."},"comment":{"url":"https://api.github.com/repos/jleclanche/django-push-notifications/issues/comments/132198487","html_url":"https://github.com/jleclanche/django-push-notifications/issues/175#issuecomment-132198487","issue_url":"https://api.github.com/repos/jleclanche/django-push-notifications/issues/175","id":132198487,"user":{"login":"Bartvds","id":685984,"avatar_url":"https://avatars.githubusercontent.com/u/685984?v=3","gravatar_id":"","url":"https://api.github.com/users/Bartvds","html_url":"https://github.com/Bartvds","followers_url":"https://api.github.com/users/Bartvds/followers","following_url":"https://api.github.com/users/Bartvds/following{/other_user}","gists_url":"https://api.github.com/users/Bartvds/gists{/gist_id}","starred_url":"https://api.github.com/users/Bartvds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bartvds/subscriptions","organizations_url":"https://api.github.com/users/Bartvds/orgs","repos_url":"https://api.github.com/users/Bartvds/repos","events_url":"https://api.github.com/users/Bartvds/events{/privacy}","received_events_url":"https://api.github.com/users/Bartvds/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T12:58:53Z","updated_at":"2015-08-18T12:58:53Z","body":"I also experience this issue (and #153). Did you find a workaround? \r\n\r\nI'm on `1.3.1` from pip (on python 3.4 and django 1.8.3)"}}