mirror of
https://github.com/django/django.git
synced 2025-04-15 21:04:36 +00:00
magic-removal: Negligible spacing change
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2355 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
35f0dabdca
commit
9cb04f5fae
@ -201,14 +201,14 @@ class Model(object):
|
||||
|
||||
def delete(self):
|
||||
assert self._get_pk_val() is not None, "%s object can't be deleted because its %s attribute is set to None." % (self._meta.object_name, self._meta.pk.attname)
|
||||
|
||||
|
||||
# Find all the objects than need to be deleted
|
||||
seen_objs = {}
|
||||
self._collect_sub_objects(seen_objs)
|
||||
|
||||
|
||||
# Actually delete the objects
|
||||
delete_objects(seen_objs)
|
||||
|
||||
|
||||
delete.alters_data = True
|
||||
|
||||
def _get_FIELD_display(self, field):
|
||||
|
Loading…
x
Reference in New Issue
Block a user