guess_school_id migration does not work properly coming from Untis 2.1.3 #53

Closed
opened 2022-07-20 18:53:56 +02:00 by nik · 4 comments
Owner
  File "/usr/local/lib/python3.9/dist-packages/django/db/migrations/operations/special.py", line 190, in database_forwards
    self.code(from_state.apps, schema_editor)
  File "/usr/local/lib/python3.9/dist-packages/aleksis/apps/untis/migrations/0003_guess_school_id.py", line 16, in guess_school_id
    school_id = vr.school_id_untis
AttributeError: 'NoneType' object has no attribute 'school_id_untis'
```plain File "/usr/local/lib/python3.9/dist-packages/django/db/migrations/operations/special.py", line 190, in database_forwards self.code(from_state.apps, schema_editor) File "/usr/local/lib/python3.9/dist-packages/aleksis/apps/untis/migrations/0003_guess_school_id.py", line 16, in guess_school_id school_id = vr.school_id_untis AttributeError: 'NoneType' object has no attribute 'school_id_untis' ```
Author
Owner

assigned to @nik

assigned to @nik
Author
Owner
created branch [`53-guess_school_id-migration-does-not-work-properly-coming-from-untis-2-1-3`](/AlekSIS/official/AlekSIS-App-Untis/-/compare/master...53-guess_school_id-migration-does-not-work-properly-coming-from-untis-2-1-3) to address this issue
Author
Owner

mentioned in merge request !232

mentioned in merge request !232
nik closed this issue 2022-09-01 12:48:04 +02:00
Author
Owner

mentioned in commit ec51930867

mentioned in commit ec51930867af5944953f980e30a8a32c7c495627
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aleksis/AlekSIS-App-Untis#53
No description provided.