Browse Source

added modell and admin for HonoraryCertificate

master
Benni Baermann 4 years ago
parent
commit
04d51943d9
2 changed files with 9 additions and 1 deletions
  1. +2
    -1
      input/admin.py
  2. +7
    -0
      input/models.py

+ 2
- 1
input/admin.py 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)

+ 7
- 0
input/models.py 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

Loading…
Cancel
Save