mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
enhance admin pages
This commit is contained in:
@ -325,6 +325,10 @@ class UVCommentReport(models.Model):
|
||||
)
|
||||
reason = models.TextField(_("reason"))
|
||||
|
||||
@cached_property
|
||||
def uv(self):
|
||||
return self.comment.uv
|
||||
|
||||
def is_owned_by(self, user):
|
||||
"""
|
||||
Can be created by a pedagogy admin, a superuser or a subscriber
|
||||
|
Reference in New Issue
Block a user