From 04d51943d967b0f9f6ad6b26f25ca0c4ccb2166b Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Wed, 30 Sep 2020 13:31:19 +0200 Subject: [PATCH] added modell and admin for HonoraryCertificate --- input/admin.py | 3 ++- input/models.py | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/input/admin.py b/input/admin.py index 4d6727b..a157f25 100644 --- a/input/admin.py +++ b/input/admin.py @@ -1,6 +1,7 @@ from django.contrib import admin # Register your models here. -from .models import Project +from .models import Project, HonoraryCertificate admin.site.register(Project) +admin.site.register(HonoraryCertificate) diff --git a/input/models.py b/input/models.py index 722c7ab..a8de6d6 100644 --- a/input/models.py +++ b/input/models.py @@ -16,3 +16,10 @@ class Project(Volonteer): def __str__(self): return self.name + +class HonoraryCertificate(Volonteer): + request_url = models.CharField(max_length=400) #can urls be longer in theory? + number = models.IntegerField(null = True) + + def __str__(self): + return "Certificate for " + self.realname