Skip to content

Commit

Permalink
Merge pull request #49 from SELab-2/small_fixes
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
LGDTimtou authored Mar 12, 2024
2 parents bd8b4f0 + 09e6693 commit db8b92d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions api/models/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ def upload_to(instance, filename):
class Project(models.Model):
project_id = models.AutoField(primary_key=True)
titel = models.CharField(max_length=100)
description = models.TextField()
opgave_bestanden = models.FileField(upload_to=upload_to)
beschrijving = models.TextField()
opgave_bestand = models.FileField(upload_to=upload_to)
vak = models.ForeignKey(Vak, on_delete=models.CASCADE)
deadline = models.DateTimeField(null=True)
max_score = models.IntegerField(default=20)
Expand Down
7 changes: 0 additions & 7 deletions api/views/indiening.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ def indiening_list(request, format=None):
if request.method == 'GET':
indieningen = Indiening.objects.all()

if "project" in request.GET:
try:
project = eval(request.GET.get('project'))
indieningen = indieningen.filter(project=project)
except NameError:
return Response(status=status.HTTP_400_BAD_REQUEST)

if "groep" in request.GET:
try:
groep = eval(request.GET.get('groep'))
Expand Down

0 comments on commit db8b92d

Please sign in to comment.