jobportal/jobs/migrations/0005_auto_20201231_1059.py

28 lines
854 B
Python
Raw Normal View History

2020-12-31 11:11:30 +01:00
# Generated by Django 3.1.4 on 2020-12-31 09:59
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('jobs', '0004_auto_20201231_1058'),
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=100)),
('slug', models.SlugField(default=None, editable=False)),
],
),
migrations.AddField(
model_name='job',
name='category',
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='jobs', to='jobs.category'),
),
]