ipv6-dot-work/jobs/migrations/0002_auto_20181017_1104.py

54 lines
1.8 KiB
Python
Raw Normal View History

# Generated by Django 2.1.2 on 2018-10-17 11:04
from django.db import migrations, models
import django.db.models.deletion
import jobs.date_utils
class Migration(migrations.Migration):
dependencies = [
('jobs', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Answer',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('text', models.TextField()),
('application', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='answers', to='jobs.Application')),
],
),
migrations.CreateModel(
name='Question',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.TextField()),
],
),
migrations.AlterModelOptions(
name='tag',
options={'ordering': ['name']},
),
migrations.AlterField(
model_name='job',
name='expires',
field=models.DateTimeField(default=jobs.date_utils.after_30_days, editable=False),
),
migrations.AddField(
model_name='question',
name='job',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='questions', to='jobs.Job'),
),
migrations.AddField(
model_name='answer',
name='question',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='answers', to='jobs.Question'),
),
migrations.AlterUniqueTogether(
name='answer',
unique_together={('question', 'application')},
),
]