You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.2 KiB
34 lines
1.2 KiB
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.9.3 on 2016-09-06 15:48
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
import redactor.fields
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('practice', '0014_auto_20160906_0709'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='WorkshopTools',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=255, verbose_name='Название')),
|
|
('url', models.URLField(blank=True, verbose_name='Ссылка')),
|
|
('description', redactor.fields.RedactorField(verbose_name='Описание')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Инструмент',
|
|
'verbose_name_plural': 'Инструменты',
|
|
},
|
|
),
|
|
migrations.AddField(
|
|
model_name='workshop',
|
|
name='tools',
|
|
field=models.ManyToManyField(blank=True, null=True, to='practice.WorkshopTools', verbose_name='Используемые инструменты'),
|
|
),
|
|
]
|
|
|