mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Add support for generic documents (admin only) (#44)
* Add support for generic documents * Add publish / unpublish actions * Minor improvements to models properties
This commit is contained in:
@@ -125,9 +125,11 @@ class RollingStock(BaseModel):
|
||||
def preview(self):
|
||||
return self.image.first().image_thumbnail(350)
|
||||
|
||||
@property
|
||||
def country(self):
|
||||
return str(self.rolling_class.company.country)
|
||||
|
||||
@property
|
||||
def company(self):
|
||||
return str(self.rolling_class.company)
|
||||
|
||||
|
Reference in New Issue
Block a user