diff --git a/README.md b/README.md index c00f38d..fcd783e 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ This command will print out the URL for accessing the local server. For example: This URL leads to the home page. Now login and then navigate to `/admin` as shown on the home page after login. ## Pay attention to: -- If you create a semester, then you have to set it as the active semester for you as current user. For that, navigate to the home page / (or click on the `Links` drop down menu in the navigation bar then `Home`). Then click on the `Semester` drop down menu in the navigation bar to choose the semester you have created to be the active one. Then navigate back to `/admin`. This will be fixed soon. +- If you create a semester, then you have to set it as the active semester for you as current user. - Many "model views" are not done yet. There is still a lot to be done. # Documentation diff --git a/advlabdb/modelViews.py b/advlabdb/modelViews.py index b9cd7ee..a13dc6d 100644 --- a/advlabdb/modelViews.py +++ b/advlabdb/modelViews.py @@ -59,6 +59,7 @@ class SemesterModelView(SecureModelView): if is_created == False and model.parts != []: flash("This semester already has parts!", "danger") return + for partLabel in partsLabels: db.session.add(Part(label=partLabel, semester=model)) db.session.commit()