mirror of
https://github.com/jazzband/django-eav2.git
synced 2026-03-16 22:40:26 +00:00
Remove unused field from attribute
This commit is contained in:
parent
c3621024f8
commit
d8251d2646
2 changed files with 0 additions and 3 deletions
|
|
@ -22,7 +22,6 @@ class Migration(migrations.Migration):
|
|||
('name', models.CharField(help_text='User-friendly attribute name', max_length=100, verbose_name='name')),
|
||||
('slug', eav.fields.EavSlugField(help_text='Short unique attribute label', unique=True, verbose_name='slug')),
|
||||
('description', models.CharField(blank=True, help_text='Short description', max_length=256, null=True, verbose_name='description')),
|
||||
('type', models.CharField(blank=True, max_length=20, null=True, verbose_name='type')),
|
||||
('datatype', eav.fields.EavDatatypeField(choices=[('text', 'Text'), ('float', 'Float'), ('int', 'Integer'), ('date', 'Date'), ('bool', 'True / False'), ('object', 'Django Object'), ('enum', 'Multiple Choice')], max_length=6, verbose_name='data type')),
|
||||
('created', models.DateTimeField(default=django.utils.timezone.now, editable=False, verbose_name='created')),
|
||||
('modified', models.DateTimeField(auto_now=True, verbose_name='modified')),
|
||||
|
|
|
|||
|
|
@ -160,8 +160,6 @@ class Attribute(models.Model):
|
|||
on_delete=models.PROTECT,
|
||||
blank=True, null=True)
|
||||
|
||||
type = models.CharField(_(u"type"), max_length=20, blank=True, null=True)
|
||||
|
||||
@property
|
||||
def help_text(self):
|
||||
return self.description
|
||||
|
|
|
|||
Loading…
Reference in a new issue