1
0
mirror of https://github.com/django/django.git synced 2025-10-26 15:16:09 +00:00

Renamed OneToOne to OneToOneRel to be consistent with ManyToManyRel

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2650 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty
2006-04-10 03:35:56 +00:00
parent b8d8aca5fd
commit b9e40b14bc
4 changed files with 7 additions and 7 deletions

View File

@@ -560,7 +560,7 @@ def _get_deleted_objects(deleted_objects, perms_needed, user, obj, opts, current
continue
opts_seen.append(related.opts)
rel_opts_name = related.get_method_name_part()
if isinstance(related.field.rel, meta.OneToOne):
if isinstance(related.field.rel, meta.OneToOneRel):
try:
sub_obj = getattr(obj, 'get_%s' % rel_opts_name)()
except ObjectDoesNotExist: