File: utils.rst

package info (click to toggle)
django-haystack 3.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,504 kB
  • sloc: python: 23,475; xml: 1,708; sh: 74; makefile: 71
file content (18 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.. _ref-utils:

=========
Utilities
=========

Included here are some of the general use bits included with Haystack.


``get_identifier``
------------------

.. function:: get_identifier(obj_or_string)

Gets an unique identifier for the object or a string representing the
object.

If not overridden, uses ``<app_label>.<object_name>.<pk>``.