Create a fake MediaEntry.media_data for sql
So that the SQL backend is more useable, let the MediaEntry have a faked media_data. It's extremely fake: The returned dict is always a new one. So any stored info is even lost!
This commit is contained in:
parent
5ff575827b
commit
5fe1fd0722
@ -167,6 +167,11 @@ class MediaEntry(Base, MediaEntryMixin):
|
||||
if media is not None:
|
||||
return media.url_for_self(urlgen)
|
||||
|
||||
@property
|
||||
def media_data(self):
|
||||
# TODO: Replace with proper code to read the correct table
|
||||
return {}
|
||||
|
||||
|
||||
class MediaFile(Base):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user