Skip to content
Snippets Groups Projects
Select Git revision
  • 4f9334348fc04553477a7e12f8114ce85f6dc719
  • main default protected
  • feature/export-filtering
  • feature/clear-schedule-button
  • fix/responsive-cols-in-polls
  • feature/preference-polling-form
  • feature/json-export-via-rest-framework
  • feature/json-schedule-import-tests
  • fix/add-room-import-only-once
  • ak-import
  • renovate/django-simple-history-3.x
  • renovate/django-debug-toolbar-4.x
  • renovate/django-5.x
  • renovate/mysqlclient-2.x
14 results

__init__.py

Blame
  • Forked from KIF / AKPlanning
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    0004_rework_virtual_3.py 691 B
    # Generated by Django 4.1.5 on 2023-03-21 23:21
    
    from django.db import migrations
    
    
    
    class Migration(migrations.Migration):
    
        atomic = False
    
        dependencies = [
            ('AKOnline', '0003_rework_virtual_2'),
        ]
    
        def copy_rooms(apps, schema_editor):
            VirtualRoomOld = apps.get_model('AKOnline', 'VirtualRoomOld')
            VirtualRoom = apps.get_model('AKOnline', 'VirtualRoom')
            for row in VirtualRoomOld.objects.all():
                v = VirtualRoom(room_id=row.pk, url=row.url)
                v.save()
    
        operations = [
            migrations.RunPython(
                copy_rooms,
                reverse_code=migrations.RunPython.noop,
                elidable=True,
            )
        ]