Skip to content
Snippets Groups Projects
Select Git revision
  • 50318ee249eb77112d099e4a8ffdd7f3d4cf8701
  • master default
  • renovate/django-split-settings-1.x
  • renovate/djangorestframework-3.x
  • main
  • 520-improve-trackmanager
  • 520-fix-scheduling
  • 520-akowner
  • 520-status
  • 520-message-resolved
  • 520-improve-scheduling-2
  • renovate/django-bootstrap5-24.x
  • 520-improve-submission
  • 520-improve-scheduling
  • 520-improve-wall
  • 520-fix-event-wizard-datepicker
  • 520-upgrades
  • renovate/tzdata-2023.x
  • renovate/django-5.x
  • renovate/fontawesomefree-6.x
  • renovate/sphinx-rtd-theme-2.x
  • renovate/sphinxcontrib-apidoc-0.x
22 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,
            )
        ]