title property for all EditorFormMixin models

This commit is contained in:
Laura Klünder 2017-05-16 18:11:33 +02:00
parent 7093db0ce5
commit 85da33dee6
2 changed files with 11 additions and 4 deletions

View file

@ -34,3 +34,7 @@ class EditorFormMixin(SerializableMixin, models.Model):
class Meta:
abstract = True
@property
def title(self):
return self._meta.verbose_name+' '+str(self.id)