mirror of
https://github.com/mediacms-io/mediacms.git
synced 2026-05-01 02:38:15 -04:00
a
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user