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

Method get_updated_field

haystack/indexes.py:364–373  ·  view source on GitHub ↗

Get the field name that represents the updated date for the model. If specified, this is used by the reindex command to filter out results from the QuerySet, enabling you to reindex only recent records. This method should either return None (reindex everything alway

(self)

Source from the content-addressed store, hash-verified

362 self.update(using=using)
363
364 def get_updated_field(self):
365 """
366 Get the field name that represents the updated date for the model.
367
368 If specified, this is used by the reindex command to filter out results
369 from the QuerySet, enabling you to reindex only recent records. This
370 method should either return None (reindex everything always) or a
371 string of the Model's DateField/DateTimeField name.
372 """
373 return None
374
375 def should_update(self, instance, **kwargs):
376 """

Callers 1

build_querysetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected