Initial
This commit is contained in:
16
app/base/models/trait.py
Executable file
16
app/base/models/trait.py
Executable file
@@ -0,0 +1,16 @@
|
||||
from django.db import models
|
||||
|
||||
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)
|
||||
|
||||
class Meta:
|
||||
verbose_name = 'Attribut'
|
||||
verbose_name_plural = 'Attribute'
|
||||
|
||||
def __str__(self):
|
||||
return self.label
|
||||
Reference in New Issue
Block a user