Changeset 7919
- Timestamp:
- 07/13/08 12:26:43 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/newforms-admin/django/contrib/admin/options.py
r7878 r7919 258 258 from django.conf import settings 259 259 if settings.DEBUG: 260 from django.contrib.contenttypes.models import ContentType261 260 from django.contrib.admin.models import LogEntry 262 261 if not LogEntry._meta.installed: … … 361 360 """ 362 361 from django.contrib.admin.models import LogEntry, ADDITION 363 from django.contrib.contenttypes.models import ContentType364 362 opts = model._meta 365 363 new_object = form.save(commit=True) … … 411 409 """ 412 410 from django.contrib.admin.models import LogEntry, CHANGE 413 from django.contrib.contenttypes.models import ContentType414 411 opts = model._meta 415 412 new_object = form.save(commit=True) … … 660 657 def delete_view(self, request, object_id, extra_context=None): 661 658 "The 'delete' admin view for this model." 662 from django.contrib.contenttypes.models import ContentType663 659 from django.contrib.admin.models import LogEntry, DELETION 664 660 opts = self.model._meta … … 714 710 def history_view(self, request, object_id, extra_context=None): 715 711 "The 'history' admin view for this model." 716 from django.contrib.contenttypes.models import ContentType717 712 from django.contrib.admin.models import LogEntry 718 713 model = self.model
