#14820: Use `TextField` instead of `PositiveIntegerField` in docs and examples for generic relations. -----------------------------------------+---------------------------------- Reporter: mrmachine | Owner: Status: new | Milestone: 1.3 Component: Documentation | Version: SVN Resolution: | Keywords: generic relation genericforeignkey object_id type textfield sprintdec2010 Triage Stage: Accepted | Has patch: 1 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | -----------------------------------------+----------------------------------
Comment (by claudep): Sorry to chime in again, but I would still propose to add db_index=True in the TaggedItem example (object_id = models.PositiveIntegerField(db_index=True)). It seems to me good practice to add index on fields used to join tables, isn't it? -- Ticket URL: <http://code.djangoproject.com/ticket/14820#comment:17> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.