from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        ('cms', '0011_auto_20150419_1006'),
    ]

    operations = [
        migrations.AlterModelManagers(
            name='pageuser',
            managers=[
                ('objects', django.contrib.auth.models.UserManager()),
            ],
        ),
        migrations.AlterField(
            model_name='globalpagepermission',
            name='sites',
            field=models.ManyToManyField(blank=True, to='sites.Site', verbose_name='sites', help_text='If none selected, user haves granted permissions to all sites.'),
        ),
        migrations.AlterField(
            model_name='usersettings',
            name='user',
            field=models.OneToOneField(to=settings.AUTH_USER_MODEL, editable=False, related_name='djangocms_usersettings'),
        ),
    ]

from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        ('cms', '0011_auto_20150419_1006'),
    ]

    operations = [
        migrations.AlterField(
            model_name='globalpagepermission',
            name='sites',
            field=models.ManyToManyField(help_text='If none selected, user haves granted permissions to all sites.', to='sites.Site', verbose_name='sites', blank=True),
            preserve_default=True,
        ),
        migrations.AlterField(
            model_name='usersettings',
            name='user',
            field=models.OneToOneField(related_name='djangocms_usersettings', editable=False, to=settings.AUTH_USER_MODEL),
            preserve_default=True,
        ),
    ]

Format migration for Django 1.7
Format migration for Django 1.7

  from __future__ import unicode_literals
  
  from django.db import models, migrations
  from django.conf import settings
- import django.contrib.auth.models
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('cms', '0011_auto_20150419_1006'),
      ]
  
      operations = [
-         migrations.AlterModelManagers(
-             name='pageuser',
-             managers=[
-                 ('objects', django.contrib.auth.models.UserManager()),
-             ],
-         ),
          migrations.AlterField(
              model_name='globalpagepermission',
              name='sites',
-             field=models.ManyToManyField(blank=True, to='sites.Site', verbose_name='sites', help_text='If none selected, user haves granted permissions to all sites.'),
+             field=models.ManyToManyField(help_text='If none selected, user haves granted permissions to all sites.', to='sites.Site', verbose_name='sites', blank=True),
+             preserve_default=True,
          ),
          migrations.AlterField(
              model_name='usersettings',
              name='user',
-             field=models.OneToOneField(to=settings.AUTH_USER_MODEL, editable=False, related_name='djangocms_usersettings'),
+             field=models.OneToOneField(related_name='djangocms_usersettings', editable=False, to=settings.AUTH_USER_MODEL),
+             preserve_default=True,
          ),
      ]
  
Format migration for Django 1.7
## Code Before:
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        ('cms', '0011_auto_20150419_1006'),
    ]

    operations = [
        migrations.AlterModelManagers(
            name='pageuser',
            managers=[
                ('objects', django.contrib.auth.models.UserManager()),
            ],
        ),
        migrations.AlterField(
            model_name='globalpagepermission',
            name='sites',
            field=models.ManyToManyField(blank=True, to='sites.Site', verbose_name='sites', help_text='If none selected, user haves granted permissions to all sites.'),
        ),
        migrations.AlterField(
            model_name='usersettings',
            name='user',
            field=models.OneToOneField(to=settings.AUTH_USER_MODEL, editable=False, related_name='djangocms_usersettings'),
        ),
    ]

## Instruction:
Format migration for Django 1.7
## Code After:
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        ('cms', '0011_auto_20150419_1006'),
    ]

    operations = [
        migrations.AlterField(
            model_name='globalpagepermission',
            name='sites',
            field=models.ManyToManyField(help_text='If none selected, user haves granted permissions to all sites.', to='sites.Site', verbose_name='sites', blank=True),
            preserve_default=True,
        ),
        migrations.AlterField(
            model_name='usersettings',
            name='user',
            field=models.OneToOneField(related_name='djangocms_usersettings', editable=False, to=settings.AUTH_USER_MODEL),
            preserve_default=True,
        ),
    ]
