# 129 Handler code
* adds handler code list usage to forms and models * updates tests * extends API for handler code handling
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
# Generated by Django 3.1.3 on 2022-01-14 08:36
|
||||
|
||||
from django.core.management import call_command
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
def load_initial_codes(apps, schema_editor):
|
||||
call_command('update_codelist')
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
@@ -32,4 +36,5 @@ class Migration(migrations.Migration):
|
||||
('codes', models.ManyToManyField(blank=True, help_text='Codes for this list', related_name='code_lists', to='codelist.KonovaCode')),
|
||||
],
|
||||
),
|
||||
migrations.RunPython(load_initial_codes),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user