Web M&M
https://mam.matfyz.cz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
385 B
19 lines
385 B
from django.db import migrations
|
|
|
|
def oprav_ulohy(apps, schema_editor):
|
|
Problem = apps.get_model('seminar', 'Pohadka')
|
|
|
|
for p in Problem.objects.filter(typ="b'uloha'"):
|
|
p.typ = "uloha"
|
|
p.save()
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('seminar', '0058_problem_to_uloha_tema_clanek'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RunPython(oprav_ulohy, oprav_ulohy),
|
|
]
|
|
|
|
|