All files for deployment ready and tested - further development in this repo.
This commit is contained in:
17
stichworte/models.py
Normal file
17
stichworte/models.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from django.db import models
|
||||
from abschnitte.models import Textabschnitt
|
||||
|
||||
class Stichwort(models.Model):
|
||||
stichwort = models.CharField(max_length=50, primary_key=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.stichwort
|
||||
|
||||
class Meta:
|
||||
verbose_name_plural="Stichworte"
|
||||
|
||||
class Stichworterklaerung (Textabschnitt):
|
||||
erklaerung = models.ForeignKey(Stichwort,on_delete=models.CASCADE)
|
||||
|
||||
class Meta:
|
||||
verbose_name="Erklärung"
|
||||
Reference in New Issue
Block a user