added modell and admin for HonoraryCertificate
This commit is contained in:
parent
f579521a1a
commit
04d51943d9
2 changed files with 9 additions and 1 deletions
|
@ -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 a new issue