64 lines
1.9 KiB
Python
64 lines
1.9 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11 on 2017-07-11 21:35
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
|
|
import sponsors.models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = []
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="Sponsor",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.AutoField(
|
|
auto_created=True,
|
|
primary_key=True,
|
|
serialize=False,
|
|
verbose_name="ID",
|
|
),
|
|
),
|
|
("created", models.DateTimeField(auto_now_add=True)),
|
|
("updated", models.DateTimeField(auto_now=True)),
|
|
(
|
|
"name",
|
|
models.CharField(help_text="Name of the sponsor", max_length=150),
|
|
),
|
|
(
|
|
"tier",
|
|
models.IntegerField(
|
|
choices=[
|
|
(1, "Gold"),
|
|
(2, "Silver"),
|
|
(3, "Bronze"),
|
|
(4, "Sponsor"),
|
|
],
|
|
help_text="The tier of the sponsorship",
|
|
),
|
|
),
|
|
(
|
|
"description",
|
|
models.TextField(
|
|
help_text="A short description of the sponsorship"
|
|
),
|
|
),
|
|
(
|
|
"logo",
|
|
models.ImageField(
|
|
help_text="A logo for the sponsor",
|
|
upload_to=sponsors.models.get_sponsor_upload_path,
|
|
),
|
|
),
|
|
],
|
|
options={"abstract": False},
|
|
)
|
|
]
|