dirty-save
This commit is contained in:
		| @@ -1,7 +1,11 @@ | |||||||
| # Generated by Django 3.1.1 on 2020-09-27 17:39 | # Generated by Django 3.1.1 on 2020-09-27 17:39 | ||||||
|  | from django.conf import settings | ||||||
|  | import django.core.validators | ||||||
| from django.db import migrations, models | from django.db import migrations, models | ||||||
| import django.db.models.deletion | import django.db.models.deletion | ||||||
|  | import easy_thumbnails.fields | ||||||
|  | import lostplaces.models | ||||||
|  | import taggit.managers | ||||||
|  |  | ||||||
|  |  | ||||||
| class Migration(migrations.Migration): | class Migration(migrations.Migration): | ||||||
|   | |||||||
| @@ -1,13 +1,27 @@ | |||||||
| # Generated by Django 3.1.1 on 2020-09-27 17:40 | # Generated by Django 3.1.1 on 2020-09-27 17:40 | ||||||
|  |  | ||||||
| from django.db import migrations | from django.conf import settings | ||||||
|  | import django.core.validators | ||||||
|  | from django.db import migrations, models | ||||||
|  | import django.db.models.deletion | ||||||
|  | import easy_thumbnails.fields | ||||||
|  | import lostplaces.models | ||||||
|  | import taggit.managers | ||||||
|  | from django.apps import apps as global_apps | ||||||
|  |  | ||||||
|  | def migrate_data(apps, schema_editor): | ||||||
|  |     OldModel = apps.get_model('lostplaces', 'ExternalLink') | ||||||
|  |     NewModel = apps.get_model('lostplaces', 'PhotoAlbum') | ||||||
|  |  | ||||||
|  |     print(OldModel, NewModel) | ||||||
|  |  | ||||||
| class Migration(migrations.Migration): | class Migration(migrations.Migration): | ||||||
|  |  | ||||||
|     dependencies = [ |     dependencies = [ | ||||||
|         ('lostplaces', '0002_auto_20200927_1739'), |         ('lostplaces', '0002_temp_create'), | ||||||
|     ] |     ] | ||||||
|  |  | ||||||
|     operations = [ |     operations = [ | ||||||
|  | #        migrations.RunPython(migrate_data), | ||||||
|     ] |     ] | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,11 +1,19 @@ | |||||||
| # Generated by Django 3.1.1 on 2020-09-27 17:40 | # Generated by Django 3.1.1 on 2020-09-27 17:40 | ||||||
|  |  | ||||||
|  | from django.conf import settings | ||||||
|  | import django.core.validators | ||||||
| from django.db import migrations, models | from django.db import migrations, models | ||||||
|  | import django.db.models.deletion | ||||||
|  | import easy_thumbnails.fields | ||||||
|  | import lostplaces.models | ||||||
|  | import taggit.managers | ||||||
|  | import django.db.models.deletion | ||||||
|  |  | ||||||
|  |  | ||||||
| class Migration(migrations.Migration): | class Migration(migrations.Migration): | ||||||
|  |  | ||||||
|     dependencies = [ |     dependencies = [ | ||||||
|         ('lostplaces', '0003_auto_20200927_1740'), |         ('lostplaces', '0003_migrate_data'), | ||||||
|     ] |     ] | ||||||
|  |  | ||||||
|     operations = [ |     operations = [ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user