kopia lustrzana https://github.com/OpenDroneMap/WebODM
33 wiersze
1.5 KiB
Python
33 wiersze
1.5 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11.1 on 2017-07-20 14:19
|
|
from __future__ import unicode_literals
|
|
|
|
import app.models.task
|
|
from django.conf import settings
|
|
import django.contrib.postgres.fields.jsonb
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import django.utils.timezone
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
('app', '0007_auto_20170712_1319'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Preset',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(help_text='A label used to describe the preset', max_length=255)),
|
|
('options', django.contrib.postgres.fields.jsonb.JSONField(blank=True, default={}, help_text="Options that define this preset (same format as in a Task's options).", validators=[app.models.task.validate_task_options])),
|
|
('created_at', models.DateTimeField(default=django.utils.timezone.now, help_text='Creation date')),
|
|
('system', models.BooleanField(db_index=True, default=False, help_text='Whether this preset is available to every user in the system or just to its owner.')),
|
|
('owner', models.ForeignKey(help_text='The person who owns this preset', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
),
|
|
]
|