This commit is contained in:
Markos Gogoulos
2026-04-29 16:30:45 +03:00
parent c063637159
commit 8bda85df97
3 changed files with 22 additions and 11 deletions
-9
View File
@@ -730,15 +730,6 @@ class Media(models.Model):
ep["updated_time"] = encoding.update_date
return ep
@property
def categories_info(self):
"""Property used on serializers"""
ret = []
for cat in self.category.all():
ret.append({"title": cat.title, "url": cat.get_absolute_url(), "is_lms_course": cat.is_lms_course})
return ret
@property
def tags_info(self):
"""Property used on serializers"""