#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)
Note:
See TracTickets
for help on using tickets.
Patch against rev. 15796