From 483e0ae90c94009d5174ba9281ea20d083116468 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Wed, 30 Sep 2020 13:46:06 +0200 Subject: [PATCH] some more modells --- input/admin.py | 3 ++- input/models.py | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/input/admin.py b/input/admin.py index a157f25..a996cbd 100644 --- a/input/admin.py +++ b/input/admin.py @@ -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) diff --git a/input/models.py b/input/models.py index a8de6d6..a127fb6 100644 --- a/input/models.py +++ b/input/models.py @@ -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