mirror of
https://codeberg.org/Mo8it/AdvLabDB.git
synced 2024-11-08 21:21:06 +00:00
Updated README
This commit is contained in:
parent
64fe85272b
commit
7e1a98b12b
2 changed files with 2 additions and 1 deletions
|
@ -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.
|
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:
|
## 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.
|
- Many "model views" are not done yet. There is still a lot to be done.
|
||||||
|
|
||||||
# Documentation
|
# Documentation
|
||||||
|
|
|
@ -59,6 +59,7 @@ class SemesterModelView(SecureModelView):
|
||||||
if is_created == False and model.parts != []:
|
if is_created == False and model.parts != []:
|
||||||
flash("This semester already has parts!", "danger")
|
flash("This semester already has parts!", "danger")
|
||||||
return
|
return
|
||||||
|
|
||||||
for partLabel in partsLabels:
|
for partLabel in partsLabels:
|
||||||
db.session.add(Part(label=partLabel, semester=model))
|
db.session.add(Part(label=partLabel, semester=model))
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
Loading…
Reference in a new issue