An actual minimum viable product, maybe? #11

Merged
andrewlalis merged 43 commits from develop into master 2018-10-12 18:19:41 +00:00
1 changed files with 6 additions and 0 deletions
Showing only changes of commit 9598983c15 - Show all commits

View File

@ -44,6 +44,12 @@ class RateableEntity(models.Model):
def __str__(self):
return self.name
def getType(self):
for (t, t_name) in RateableEntity.TYPE_CHOICES:
if t == self.entity_type:
return t_name
return ''
# A review represents any single data entry to the database.
class Review(models.Model):
# An integer rating in the domain [1, 5]