some more modells

This commit is contained in:
Benni Bärmann 2020-09-30 13:46:06 +02:00
parent 04d51943d9
commit 483e0ae90c
2 changed files with 11 additions and 1 deletions

View File

@ -1,7 +1,8 @@
from django.contrib import admin from django.contrib import admin
# Register your models here. # Register your models here.
from .models import Project, HonoraryCertificate from .models import Project, HonoraryCertificate, Library
admin.site.register(Project) admin.site.register(Project)
admin.site.register(HonoraryCertificate) admin.site.register(HonoraryCertificate)
admin.site.register(Library)

View File

@ -23,3 +23,12 @@ class HonoraryCertificate(Volonteer):
def __str__(self): def __str__(self):
return "Certificate for " + self.realname 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