How to create Postgres ltree data type for Django? and how to use it with QuerySets? (create wrapper? how?)
About lree here:
http://www.postgresql.org/docs/current/static/ltree.html
About custom fields in Django here:
docs.djangoproject.com/en/1.2/howto/custom-model-fields/
P.S.
Also there are “Django Tree Libraries” but ltree looks better..
You have listed two of the correct pieces. The general method for adapting a PostgreSQL data type to Django is:
Documentation on step 2 is available at http://initd.org/psycopg/docs/advanced.html#adapting-new-types …