Browse Source

some more modells

master
Benni Baermann 4 years ago
parent
commit
483e0ae90c
2 changed files with 11 additions and 1 deletions
  1. +2
    -1
      input/admin.py
  2. +9
    -0
      input/models.py

+ 2
- 1
input/admin.py View File

@ -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)

+ 9
- 0
input/models.py View File

@ -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…
Cancel
Save