-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from SELab-2/develop
Milestone 2
- Loading branch information
Showing
199 changed files
with
21,807 additions
and
1,180 deletions.
There are no files selected for viewing
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
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
Empty file.
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,45 @@ | ||
from django.contrib import admin | ||
|
||
from backend.pigeonhole.apps.courses.models import Course | ||
|
||
|
||
class CourseAdmin(admin.ModelAdmin): | ||
list_display = ( | ||
'name', | ||
'course_id', | ||
) | ||
search_fields = ( | ||
'name', | ||
'course_id', | ||
'description', | ||
) | ||
ordering = ( | ||
'course_id', | ||
) | ||
readonly_fields = ( | ||
'invite_token', | ||
) | ||
|
||
fieldsets = ( | ||
( | ||
None, | ||
{ | ||
'fields': ( | ||
'name', | ||
'description', | ||
) | ||
} | ||
), | ||
( | ||
'Invites', | ||
{ | ||
'fields': ( | ||
'invite_token', | ||
'open_course', | ||
) | ||
} | ||
) | ||
) | ||
|
||
|
||
admin.site.register(Course, CourseAdmin) |
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
18 changes: 18 additions & 0 deletions
18
backend/pigeonhole/apps/courses/migrations/0002_course_course_banner.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,18 @@ | ||
# Generated by Django 4.2.11 on 2024-04-17 14:59 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
('courses', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='course', | ||
name='course_banner', | ||
field=models.FileField(blank=True, default='course_banners/default.jpg', null=True, | ||
upload_to='course_banners/'), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
backend/pigeonhole/apps/courses/migrations/0003_alter_course_course_banner.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,18 @@ | ||
# Generated by Django 4.2.11 on 2024-04-17 15:00 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('courses', '0002_course_course_banner'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='course', | ||
name='course_banner', | ||
field=models.FileField(blank=True, default='course_banners/default.jpg', upload_to='course_banners/'), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
backend/pigeonhole/apps/courses/migrations/0004_rename_course_banner_course_banner.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,18 @@ | ||
# Generated by Django 4.2.11 on 2024-04-17 15:01 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('courses', '0003_alter_course_course_banner'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='course', | ||
old_name='course_banner', | ||
new_name='banner', | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
backend/pigeonhole/apps/courses/migrations/0005_alter_course_banner.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,18 @@ | ||
# Generated by Django 4.2.11 on 2024-04-17 15:09 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('courses', '0004_rename_course_banner_course_banner'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='course', | ||
name='banner', | ||
field=models.FileField(blank=True, default='course_banners/ugent_banner.png', upload_to='course_banners/'), | ||
), | ||
] |
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
Oops, something went wrong.