added modell and admin for HonoraryCertificate

This commit is contained in:
Benni Baermann 2020-09-30 13:31:19 +02:00
parent f579521a1a
commit 04d51943d9
2 changed files with 9 additions and 1 deletions

View file

@ -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)

View file

@ -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