double check migrations

Issue #41 resolved
Ruben Van Wassenhove created an issue
  • courses: 0012_auto__del_location__chg_field_course_location.py
  • courses: 0013_auto__add_field_course_test_course.py
  • locations: 0001_initial.py
  • locations: 0002_copy_locations.py

I'm not sure if these migrations will work, since I removed the Location model in the courses app

from littleball.apps.courses.models import Location

And in 0002_copy_locations.py, the Location model is being copied...:

for location in Location.objects.all():
    new_location = orm.Location(pk=location.pk, name=location.name,
    address=location.address, postal_code=location.postal_code, place=location.place)
    new_location.save()

Comments (2)

  1. Ruben Van Wassenhove reporter

    Migrations fixed I guess.

    • Achteraf moeten alle lessen met locatie proefles[LOCATIE] (vb. proefles Anzegem@sporthal Torrebos) nog aangepast worden. locatie wordt [LOCATIE] en proefles aangevinkt.
    • Daarna mogen alle locaties proefles[LOCATIE] worden verwijderd
  2. Log in to comment