diff --git a/events/models/events.py b/events/models/events.py index a5c48d4..5e0d7cb 100644 --- a/events/models/events.py +++ b/events/models/events.py @@ -187,14 +187,10 @@ def delete_event_searchable(event): try: searchable = Searchable.objects.get(event_uri=event_uri) + searchable.delete() except: - searchable = Searchable(event_uri) - searchable.origin_node = origin_url - searchable.federation_node = origin_url - searchable.federation_time = timezone.now() + pass - searchable.event_url = event_url - searchable.delete() def slugify(s, ok=SLUG_OK, lower=True, spaces=False): # L and N signify letter/number.