diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index 77c7705a10..142ce3be5f 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -665,7 +665,7 @@ class ModelAdmin(BaseModelAdmin): """ obj.save() - def delete_model(self, requet, obj): + def delete_model(self, request, obj): """ Given a model instance delete it from the database. """ diff --git a/docs/topics/db/multi-db.txt b/docs/topics/db/multi-db.txt index e996ddf61b..5a052d4a17 100644 --- a/docs/topics/db/multi-db.txt +++ b/docs/topics/db/multi-db.txt @@ -469,7 +469,7 @@ multiple-database support:: # Tell Django to save objects to the 'other' database. obj.save(using=self.using) - def delete_model(self, requqest, obj): + def delete_model(self, request, obj): # Tell Django to delete objects from the 'other' database obj.delete(using=self.using)