Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:SELab-2/UGent-1 into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinhardDP committed May 23, 2024
2 parents 4ff702b + 0134f8e commit c761a8b
Show file tree
Hide file tree
Showing 4 changed files with 202 additions and 172 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.2.11 on 2024-05-23 12:40

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('courses', '0007_alter_course_year'),
]

operations = [
migrations.AlterField(
model_name='course',
name='banner',
field=models.FileField(blank=True, null=True, upload_to='course_banners/'),
),
]
4 changes: 1 addition & 3 deletions backend/pigeonhole/apps/courses/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
from rest_framework import serializers


# Create your models here.
class Course(models.Model):
course_id = models.BigAutoField(primary_key=True)
name = models.CharField(max_length=256)
description = models.TextField()
open_course = models.BooleanField(default=False)
invite_token = models.CharField(max_length=20, blank=True, null=True)
banner = models.FileField(upload_to='course_banners/', blank=True, null=False,
default='course_banners/ugent_banner.png')
banner = models.FileField(upload_to='course_banners/', blank=True, null=True)
archived = models.BooleanField(default=False)
year = models.IntegerField(default=2024)

Expand Down
2 changes: 1 addition & 1 deletion frontend/app/[locale]/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const NavBar = () => {
{user?.role === 1 ? (
<>
<Divider/>
<Link href={'/admin'} style={{textDecoration: 'none', color: 'inherit'}}>
<Link href={'/admin/users'} style={{textDecoration: 'none', color: 'inherit'}}>
<ListItemButton>
<ListItemIcon>
<ConstructionIcon/>
Expand Down
Loading

0 comments on commit c761a8b

Please sign in to comment.