28 lines
681 B
Python
28 lines
681 B
Python
# 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
|
|
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):
|
|
|
|
dependencies = [
|
|
('lostplaces', '0002_temp_create'),
|
|
]
|
|
|
|
operations = [
|
|
# migrations.RunPython(migrate_data),
|
|
]
|
|
|