Previously this Field responded with an attribute error when access directly from the class:
>>> Node.position
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/wstott/repos/django-positions/positions/fields.py", line 144, in __get__
raise AttributeError("%s must be accessed via instance." % self.name)
AttributeError: position must be accessed via instance.
Django admin now relies on the following behaviour:
>>> from examples.nodes.models import *
>>> Node.position
<positions.fields.PositionField: position>
>>> Node.name
<django.db.models.query_utils.DeferredAttribute object at 0x7f6c6b2e9748>
Previously this Field responded with an attribute error when access directly from the class:
Django admin now relies on the following behaviour: