pedagogy: fix some previous tests never launched and test for display/create/delete of UVComment

This commit is contained in:
2019-06-16 18:26:30 +02:00
parent 5003e57338
commit 8512f3c5d0
3 changed files with 199 additions and 25 deletions

View File

@ -158,6 +158,9 @@ class UVComment(models.Model):
"""
return self.author == user or user.is_owner(self.uv)
def __str__(self):
return "%s - %s" % (self.uv, self.author)
author = models.ForeignKey(
User,
related_name="uv_comments",