28 lines
854 B
Python
28 lines
854 B
Python
|
# 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'),
|
||
|
),
|
||
|
]
|