Skip to content

ChainedForeignKey doesn't support abbreviated ForeignKey model name syntax #16

Open
acdha opened this Issue Mar 28, 2011 · 0 comments

1 participant

@acdha
acdha commented Mar 28, 2011

The standard Django ForeignKey field allows you to reference models which have not yet been defined using either the name of the model (e.g. models.ForeignKey("Author")) but ChainedForeignKey requires the full <app>.<model> syntax to avoid a ValueError in db_fields.py on line 16 when it attempts to split the field name.

Since the shorter form is actually recommended by default in the Django documentation (see http://docs.djangoproject.com/en/dev/ref/models/fields/#foreignkey) this difference should at least be documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.