Rename Photo.bytestring -> bytes_string.
This commit is contained in:
parent
a5913a17f9
commit
387b7f1096
2 changed files with 3 additions and 3 deletions
|
@ -905,7 +905,7 @@ class Photo(ObjectBase):
|
|||
return None
|
||||
|
||||
@property
|
||||
def bytestring(self):
|
||||
def bytes_string(self):
|
||||
if self.bytes is not None:
|
||||
return bytestring.bytestring(self.bytes)
|
||||
return '??? b'
|
||||
|
@ -1079,7 +1079,7 @@ class Photo(ObjectBase):
|
|||
'bytes': self.bytes,
|
||||
'duration_string': self.duration_string,
|
||||
'duration': self.duration,
|
||||
'bytes_string': self.bytestring,
|
||||
'bytes_string': self.bytes_string,
|
||||
'has_thumbnail': bool(self.thumbnail),
|
||||
'created': self.created,
|
||||
'filename': self.basename,
|
||||
|
|
|
@ -138,7 +138,7 @@ draggable="true"
|
|||
|
||||
<span class="photo_card_metadata">
|
||||
{{- metadatas|join_and_trail(", ")|safe -}}
|
||||
<a target="_blank" href="{{photo|file_link}}">{{photo.bytestring}}</a>
|
||||
<a target="_blank" href="{{photo|file_link}}">{{photo.bytes_string}}</a>
|
||||
</span>
|
||||
|
||||
{% if view == "grid" %}
|
||||
|
|
Loading…
Reference in a new issue