Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#23219 closed Uncategorized (worksforme)

Manager, QuerySet

Reported by: bgomesdeabreu@… Owned by: nobody
Component: Documentation Version: 1.4
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

Hi guys !!

In documentation about models.manager in query set (https://docs.djangoproject.com/en/dev/topics/db/managers/#calling-custom-queryset-methods-from-the-manager)

example is class PersonQuerySet(models.QuerySet): and when I use.. django give me a erro. When I use class PersonQuerySet(models.query.QuerySet): django work perfect !

Change History (2)

comment:1 by Baptiste Mispelon, 10 years ago

Resolution: worksforme
Status: newclosed

Hi,

It sounds like you're not reading the documentation that matches the version of Django you're actually using.

Make sure you have the right version by using the version switcher at the bottom right of the page.

I'm closing the ticket as worksforme. Feel free to reopen it if that wasn't your issue.

THanks

comment:2 by Tim Graham, 10 years ago

Yes, that import is available as documented in Django 1.7+.

Note: See TracTickets for help on using tickets.
Back to Top