34 lines
1.0 KiB
Python
34 lines
1.0 KiB
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import models, migrations
|
|
from django.conf import settings
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='DashboardPreferences',
|
|
fields=[
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
('data', models.TextField()),
|
|
('dashboard_id', models.CharField(max_length=100)),
|
|
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
options={
|
|
'ordering': ('user',),
|
|
'db_table': 'admin_tools_dashboard_preferences',
|
|
},
|
|
bases=(models.Model,),
|
|
),
|
|
migrations.AlterUniqueTogether(
|
|
name='dashboardpreferences',
|
|
unique_together=set([('user', 'dashboard_id')]),
|
|
),
|
|
]
|