Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#15857 closed Uncategorized (duplicate)

contrib.contenttypes depends on contrib.auth

Reported by: Luc Saffre Owned by: nobody
Component: Uncategorized Version: 1.2
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


Currently it is not possible to successfully run test on a site that has contenttypes but not django.contrib.auth installed. That's an a limiting dependency.
I suggest to add a line in the test suite of django.contrib.contenttypes:

from django.contrib.auth.models import User
if not User._meta.installed: return            ## THE NEW LINE
user_ct = ContentType.objects.get_for_model(User)

Attachments (1)

contenttypes_auth.diff (505 bytes) - added by Luc Saffre 8 years ago.
Patch against rev. 15796

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by Luc Saffre

Attachment: contenttypes_auth.diff added

Patch against rev. 15796

comment:1 Changed 8 years ago by anonymous

Resolution: duplicate
Status: newclosed

Dupe of #14543.

comment:2 Changed 8 years ago by Julien Phalip

oops, that was me...

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