Django

Code

Ticket #7702 (closed: fixed)

Opened 5 months ago

Last modified 5 months ago

more imports ContentType than we need

Reported by: Honza_Kral Assigned to: nobody
Milestone: Component: django.contrib.admin
Version: newforms-admin Keywords: ep2008
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

django/contrib/admin/options.py has way too much import statements, I remove some imports from within functions that are already imported at the top of the file.

Attachments

7702-against-7875.patch (2.3 kB) - added by Honza_Kral on 07/10/08 03:56:19.

Change History

07/10/08 03:56:19 changed by Honza_Kral

  • attachment 7702-against-7875.patch added.

07/10/08 05:41:13 changed by vitek_pliska

  • keywords set to ep2008.
  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

I checked and applied this patch on 7875 nfa, all tests passed.

07/10/08 07:08:06 changed by Simon Greenhill

  • stage changed from Unreviewed to Ready for checkin.

07/13/08 12:26:44 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(In [7919]) newforms-admin: Fixed #7702 -- Removed redundant imports in django/contrib/admin/options.py. Thanks, Honza


Add/Change #7702 (more imports ContentType than we need)




Change Properties
Action