mirror of
https://github.com/daniviga/django-ram.git
synced 2025-12-26 15:28:31 +01:00
Code refactoring to simplify template data contexts (#55)
* Fix a search filter when no catalogs are returned * Code refactoring to simplify templates * Remove duplicated code * Remove dead code * More improvements, clean up and add featured items in homepage * Fix a type and better page navigation
This commit is contained in:
@@ -224,6 +224,10 @@ class MagazineIssue(BaseBook):
|
||||
"published."
|
||||
)
|
||||
|
||||
@property
|
||||
def obj_label(self):
|
||||
return "Magazine Issue"
|
||||
|
||||
def preview(self):
|
||||
return self.image.first().image_thumbnail(100)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user