-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: set portal-api as staff member (#311)
## Changes - Set portal-api as staff member. Else it doesn't manage to access the API ## Issue(s) - #
- Loading branch information
1 parent
129e5a2
commit cbbda1b
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
portal/portal/academy/migrations/0011_alter_grade_notebook_alter_grade_score.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Generated by Django 4.2.14 on 2024-10-01 18:09 | ||
|
||
from django.db import migrations, models | ||
|
||
import portal.academy.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("academy", "0010_grade_on_time"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="grade", | ||
name="notebook", | ||
field=models.FileField( | ||
blank=True, null=True, upload_to=portal.academy.models.notebook_path | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="grade", | ||
name="score", | ||
field=models.FloatField(blank=True, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,6 +138,7 @@ def get_env(self): | |
grader = get_user_model().objects.create( | ||
username=settings.GRADING_USERNAME, | ||
email="[email protected]", | ||
is_staff=True, | ||
) | ||
|
||
# Check if grader already has an auth token | ||
|