forked from beba/foerderbarometer
added modell and admin for HonoraryCertificate
This commit is contained in:
parent
f579521a1a
commit
04d51943d9
|
@ -1,6 +1,7 @@
|
||||||
from django.contrib import admin
|
from django.contrib import admin
|
||||||
|
|
||||||
# Register your models here.
|
# Register your models here.
|
||||||
from .models import Project
|
from .models import Project, HonoraryCertificate
|
||||||
|
|
||||||
admin.site.register(Project)
|
admin.site.register(Project)
|
||||||
|
admin.site.register(HonoraryCertificate)
|
||||||
|
|
|
@ -16,3 +16,10 @@ class Project(Volonteer):
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
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…
Reference in New Issue