hvad.exceptions

exception hvad.exceptions.WrongManager

Raised when trying to access the related manager of a foreign key pointing from a normal model to a translated model using the standard manager instead of one returned by hvad.utils.get_translation_aware_manager(). Used to give developers an easier to understand exception than a django.core.exceptions.FieldError. This exception is raised by the hvad.utils.SmartGetFieldByName which gets patched onto the options (meta) of translated models.

Read the Docs v: latest
Versions
latest
0.0.3
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.