nuitdelinfo_2021/people/models.py

21 lines
510 B
Python
Raw Normal View History

2021-12-02 21:57:32 +01:00
from django.db.models import Model, CharField, DateField, TextField
class People(Model):
first_name = CharField(max_length=40, null=False)
last_name = CharField(max_length=60, null=False)
title = CharField(max_length=70)
description = TextField(null=False)
birth = DateField(null=False)
death = DateField()
history = TextField()
genealogy = TextField()
awards = TextField()
pro_life = TextField()
testimonials = TextField()
sources = TextField(null=False)