You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
965 B
29 lines
965 B
from django.db import models
|
|
|
|
|
|
class Ansatz(models.Model):
|
|
class Meta:
|
|
# app_label: str = models.CharField(max_length=200, default="HUEL")
|
|
managed = False
|
|
db_table = 'Ansatz_View'
|
|
id = models.BigAutoField(primary_key=True)
|
|
Kapitel = models.CharField(max_length=4)
|
|
Titel = models.CharField(max_length=5)
|
|
Betrag = models.DecimalField(max_digits=15, decimal_places=2,blank=True, null=True)
|
|
Grund = models.TextField(blank=True, null=True)
|
|
Datum = models.DateField(blank=True, null=True)
|
|
Art = models.TextField(blank=True, null=True)
|
|
HHJ = models.CharField(max_length=4,blank=True, null=True)
|
|
|
|
def __str__(self):
|
|
return self.Titel
|
|
|
|
|
|
class Test(models.Model):
|
|
#class Meta:
|
|
# app_label: str = models.CharField(max_length=200, default="HUEL")
|
|
Titel = models.TextField()
|
|
Betrag = models.DecimalField(max_digits=15, decimal_places=2)
|
|
|
|
def __str__(self):
|
|
return self.Titel
|
|
|