commit aa3ad06729bae1f38a32f0783699f312f920dee7
Author: Honza Král <Honza.Kral@gmail.com>
Date: Mon Jan 28 22:11:19 2008 +0100
Removed superfluous imports
diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
index b83b68c..4c7d83b 100644
a
|
b
|
class ModelAdmin(BaseModelAdmin):
|
257 | 257 | # Check that LogEntry, ContentType and the auth context processor are installed. |
258 | 258 | from django.conf import settings |
259 | 259 | if settings.DEBUG: |
260 | | from django.contrib.contenttypes.models import ContentType |
261 | 260 | from django.contrib.admin.models import LogEntry |
262 | 261 | if not LogEntry._meta.installed: |
263 | 262 | raise ImproperlyConfigured("Put 'django.contrib.admin' in your INSTALLED_APPS setting in order to use the admin application.") |
… |
… |
class ModelAdmin(BaseModelAdmin):
|
360 | 359 | `form` is a bound Form instance that's verified to be valid. |
361 | 360 | """ |
362 | 361 | from django.contrib.admin.models import LogEntry, ADDITION |
363 | | from django.contrib.contenttypes.models import ContentType |
364 | 362 | opts = model._meta |
365 | 363 | new_object = form.save(commit=True) |
366 | 364 | |
… |
… |
class ModelAdmin(BaseModelAdmin):
|
410 | 408 | `formsets` is a sequence of InlineFormSet instances that are verified to be valid. |
411 | 409 | """ |
412 | 410 | from django.contrib.admin.models import LogEntry, CHANGE |
413 | | from django.contrib.contenttypes.models import ContentType |
414 | 411 | opts = model._meta |
415 | 412 | new_object = form.save(commit=True) |
416 | 413 | pk_value = new_object._get_pk_val() |
… |
… |
class ModelAdmin(BaseModelAdmin):
|
657 | 654 | |
658 | 655 | def delete_view(self, request, object_id, extra_context=None): |
659 | 656 | "The 'delete' admin view for this model." |
660 | | from django.contrib.contenttypes.models import ContentType |
661 | 657 | from django.contrib.admin.models import LogEntry, DELETION |
662 | 658 | opts = self.model._meta |
663 | 659 | app_label = opts.app_label |
… |
… |
class ModelAdmin(BaseModelAdmin):
|
711 | 707 | |
712 | 708 | def history_view(self, request, object_id, extra_context=None): |
713 | 709 | "The 'history' admin view for this model." |
714 | | from django.contrib.contenttypes.models import ContentType |
715 | 710 | from django.contrib.admin.models import LogEntry |
716 | 711 | model = self.model |
717 | 712 | opts = model._meta |