#221 closed defect (invalid)
Missing argument for ForeignKey in documentation
Reported by: | paolo | Owned by: | Jacob |
---|---|---|---|
Component: | Documentation | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
ForeignKey fields provide an argument called 'name', which is not not mentioned in documentation.
It is useful when you need to reference a ForeignKey field by name, i.e. when you want to order the fields list in admin via admin = meta.Admin(fields = ((None, {'fields': ('foo', 'forKey_name', 'bar')}),)
Note:
See TracTickets
for help on using tickets.
This is no longer valid, as of [549].