fmartingr
/
shelfzilla
Archived
1
0
Fork 0
This repository has been archived on 2021-06-29. You can view files and clone it, but cannot push or open issues or pull requests.
shelfzilla/shelfzilla/models.py

16 lines
440 B
Python

from django.db import models
from django.utils.translation import ugettext_lazy as _
class ReviewModel(models.Model):
for_review = models.BooleanField(_('For review'), default=False)
for_review_comment = models.TextField(
_('Review comment'), null=True, blank=True)
def first_letter(self):
if hasattr(self, 'name'):
return self.name and self.name[0] or ''
class Meta:
abstract = True