feat: add types for model fields
This commit is contained in:
@@ -6,7 +6,8 @@ from app.base.forms.fields import TextField
|
||||
class Trait(models.Model):
|
||||
key = models.CharField('UUID', primary_key=True, max_length=20)
|
||||
label = models.CharField('Label', max_length=200)
|
||||
description = TextField('Beschreibung', blank=True)
|
||||
description: 'models.TextField[str]' = TextField(
|
||||
'Beschreibung', blank=True)
|
||||
|
||||
class Meta:
|
||||
verbose_name = 'Attribut'
|
||||
|
||||
Reference in New Issue
Block a user