Rename Photo.bytestring -> bytes_string.

This commit is contained in:
voussoir 2021-05-24 20:42:29 -07:00
parent a5913a17f9
commit 387b7f1096
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB
2 changed files with 3 additions and 3 deletions

View file

@ -905,7 +905,7 @@ class Photo(ObjectBase):
return None return None
@property @property
def bytestring(self): def bytes_string(self):
if self.bytes is not None: if self.bytes is not None:
return bytestring.bytestring(self.bytes) return bytestring.bytestring(self.bytes)
return '??? b' return '??? b'
@ -1079,7 +1079,7 @@ class Photo(ObjectBase):
'bytes': self.bytes, 'bytes': self.bytes,
'duration_string': self.duration_string, 'duration_string': self.duration_string,
'duration': self.duration, 'duration': self.duration,
'bytes_string': self.bytestring, 'bytes_string': self.bytes_string,
'has_thumbnail': bool(self.thumbnail), 'has_thumbnail': bool(self.thumbnail),
'created': self.created, 'created': self.created,
'filename': self.basename, 'filename': self.basename,

View file

@ -138,7 +138,7 @@ draggable="true"
<span class="photo_card_metadata"> <span class="photo_card_metadata">
{{- metadatas|join_and_trail(", ")|safe -}} {{- 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> </span>
{% if view == "grid" %} {% if view == "grid" %}