MCPcopy Create free account
hub / github.com/django-haystack/django-haystack / remove

Method remove

haystack/backends/__init__.py:94–103  ·  view source on GitHub ↗

Removes a document/object from the backend. Can be either a model instance or the identifier (i.e. ``app_name.model_name.id``) in the event the object no longer exists. This method MUST be implemented by each backend, as it will be highly specific to each on

(self, obj_or_string)

Source from the content-addressed store, hash-verified

92 raise NotImplementedError
93
94 def remove(self, obj_or_string):
95 """
96 Removes a document/object from the backend. Can be either a model
97 instance or the identifier (i.e. ``app_name.model_name.id``) in the
98 event the object no longer exists.
99
100 This method MUST be implemented by each backend, as it will be highly
101 specific to each one.
102 """
103 raise NotImplementedError
104
105 def clear(self, models=None, commit=True):
106 """

Callers 2

remove_objectMethod · 0.45
update_backendMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected