Opened 13 years ago

Closed 13 years ago

Last modified 13 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

Description

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 13 years ago.
Patch against rev. 15796

Download all attachments as: .zip

Change History (3)

by Luc Saffre, 13 years ago

Attachment: contenttypes_auth.diff added

Patch against rev. 15796

comment:1 by anonymous, 13 years ago

Resolution: duplicate
Status: newclosed

Dupe of #14543.

comment:2 by Julien Phalip, 13 years ago

oops, that was me...

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