Remove Post.photos attribute which was never used

It was replaced by the _children attribute.
merge-requests/130/head
Jason Robinson 2017-07-03 22:24:05 +03:00
rodzic bbd85571a1
commit 659ba5643d
3 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -5,6 +5,9 @@
### Fixed
* Fix getting sender from a combination of legacy Diaspora encrypted payload and new entity names (for example `author`). This combination probably only existed in this library.
### Removed
* `Post.photos` entity attribute was never used by any code and has been removed. Child entities of type `Image` are stored in the `Post._children` as before.
## [0.12.0] - 2017-05-22
### Backwards incompatible changes

Wyświetl plik

@ -191,7 +191,6 @@ class Post(RawContentMixin, GUIDMixin, HandleMixin, PublicMixin, CreatedAtMixin,
"""Reflects a post, status message, etc, which will be composed from the message or to the message."""
provider_display_name = ""
location = ""
photos = []
_allowed_children = (Image,)

Wyświetl plik

@ -12,7 +12,7 @@ class TestGetBaseAttributes():
entity = Post()
attrs = get_base_attributes(entity).keys()
assert set(attrs) == {
"created_at", "guid", "handle", "location", "photos", "provider_display_name", "public", "raw_content",
"created_at", "guid", "handle", "location", "provider_display_name", "public", "raw_content",
"signature",
}