mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 21:27:49 +02:00
Improvements and driver stub for serial comms
This commit is contained in:
22
dcc/roster/migrations/0012_company.py
Normal file
22
dcc/roster/migrations/0012_company.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# Generated by Django 4.0 on 2021-12-16 21:26
|
||||
|
||||
from django.db import migrations, models
|
||||
import django_countries.fields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('roster', '0011_remove_cab_decoder_model_cab_decoder'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Company',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=128, unique=True)),
|
||||
('country', django_countries.fields.CountryField(max_length=2)),
|
||||
],
|
||||
),
|
||||
]
|
19
dcc/roster/migrations/0013_cab_company.py
Normal file
19
dcc/roster/migrations/0013_cab_company.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 4.0 on 2021-12-16 21:27
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('roster', '0012_company'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='cab',
|
||||
name='company',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='roster.company'),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user