forked from beba/foerderbarometer
some more modells
This commit is contained in:
parent
04d51943d9
commit
483e0ae90c
|
@ -1,7 +1,8 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
from .models import Project, HonoraryCertificate
|
||||
from .models import Project, HonoraryCertificate, Library
|
||||
|
||||
admin.site.register(Project)
|
||||
admin.site.register(HonoraryCertificate)
|
||||
admin.site.register(Library)
|
||||
|
|
|
@ -23,3 +23,12 @@ class HonoraryCertificate(Volonteer):
|
|||
|
||||
def __str__(self):
|
||||
return "Certificate for " + self.realname
|
||||
|
||||
class Library(Volonteer):
|
||||
library = models.CharField(max_length=200)
|
||||
cost = models.CharField(max_length=10)
|
||||
duration = models.CharField(max_length=100)
|
||||
notes = models.CharField(max_length=500)
|
||||
|
||||
def __str__(self):
|
||||
return self.library
|
||||
|
|
Loading…
Reference in New Issue