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.
25 lines
911 B
25 lines
911 B
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import models, migrations
|
|
import main.models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('main', '0006_auto_20150328_1507'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Banner',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, verbose_name='ID', serialize=False)),
|
|
('title', models.CharField(max_length=256, verbose_name='Альтернативный текст')),
|
|
('image', models.ImageField(verbose_name='Баннер', upload_to=main.models.photo_filename)),
|
|
('link', models.CharField(max_length=1024, verbose_name='Ссылка')),
|
|
('is_active', models.BooleanField(default=True, verbose_name='Публиковать')),
|
|
],
|
|
),
|
|
]
|
|
|