title property for all EditorFormMixin models
This commit is contained in:
parent
7093db0ce5
commit
85da33dee6
2 changed files with 11 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue