feat: Add string representation of search

This commit is contained in:
moanos [he/him] 2024-12-31 13:26:38 +01:00
parent c2b3ff2395
commit 674645c65c

View File

@ -21,6 +21,9 @@ class Search():
self.place_not_found = False # Indicates that a location was given but could not be geocoded self.place_not_found = False # Indicates that a location was given but could not be geocoded
self.search_form = None self.search_form = None
def __str__(self):
return f"Search: {self.sex=}, {self.location=}, {self.search_position=}, {self.area_search=}, {self.max_distance=}"
def __eq__(self, other): def __eq__(self, other):
""" """
Custom equals that also supports SearchSubscriptions Custom equals that also supports SearchSubscriptions