Rename git app (#2243)
* renamed application git -> git_manager * removed _GitImportFix class * fixed cli tests * git_manager -> dataset_repo * updated changelog * fixed dataset manager testsmain
parent
f138859c1a
commit
a222741f6b
@ -1,19 +1,21 @@
|
||||
# Generated by Django 2.1.3 on 2019-01-23 10:05
|
||||
|
||||
import cvat.apps.git.models
|
||||
import cvat.apps.dataset_repo.models
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('git', '0001_initial'),
|
||||
('dataset_repo', '0001_initial'),
|
||||
]
|
||||
|
||||
replaces = [('git', '0002_auto_20190123_1305')]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='gitdata',
|
||||
name='status',
|
||||
field=models.CharField(default=cvat.apps.git.models.GitStatusChoice('!sync'), max_length=20),
|
||||
field=models.CharField(default=cvat.apps.dataset_repo.models.GitStatusChoice('!sync'), max_length=20),
|
||||
),
|
||||
]
|
||||
@ -0,0 +1,16 @@
|
||||
from django.db import migrations
|
||||
|
||||
def update_contenttypes_table(apps, schema_editor):
|
||||
content_type_model = apps.get_model('contenttypes', 'ContentType')
|
||||
content_type_model.objects.filter(app_label='git').update(app_label='dataset_repo')
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('dataset_repo', '0003_gitdata_lfs'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelTable('gitdata', 'dataset_repo_gitdata'),
|
||||
migrations.RunPython(update_contenttypes_table),
|
||||
]
|
||||
Loading…
Reference in New Issue