mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
magic-removal: Fixed some typos in comments.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2385 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
86a6ce8983
commit
773c176c6f
@ -294,7 +294,7 @@ class ReverseManyRelatedObjectsDescriptor(object):
|
|||||||
_add_m2m_items(self, superclass, rel_model, join_table, source_col_name,
|
_add_m2m_items(self, superclass, rel_model, join_table, source_col_name,
|
||||||
target_col_name, instance._get_pk_val(), *objs, **kwargs)
|
target_col_name, instance._get_pk_val(), *objs, **kwargs)
|
||||||
|
|
||||||
# If this is a symmmetrical m2m relation to self, add the mirror entry in the m2m table
|
# If this is a symmetrical m2m relation to self, add the mirror entry in the m2m table
|
||||||
if instance.__class__ == rel_model and symmetrical:
|
if instance.__class__ == rel_model and symmetrical:
|
||||||
_add_m2m_items(self, superclass, rel_model, join_table, target_col_name,
|
_add_m2m_items(self, superclass, rel_model, join_table, target_col_name,
|
||||||
source_col_name, instance._get_pk_val(), *objs, **kwargs)
|
source_col_name, instance._get_pk_val(), *objs, **kwargs)
|
||||||
@ -305,7 +305,7 @@ class ReverseManyRelatedObjectsDescriptor(object):
|
|||||||
_remove_m2m_items(rel_model, join_table, source_col_name,
|
_remove_m2m_items(rel_model, join_table, source_col_name,
|
||||||
target_col_name, instance._get_pk_val(), *objs)
|
target_col_name, instance._get_pk_val(), *objs)
|
||||||
|
|
||||||
# If this is a symmmetrical m2m relation to self, remove the mirror entry in the m2m table
|
# If this is a symmetrical m2m relation to self, remove the mirror entry in the m2m table
|
||||||
if instance.__class__ == rel_model and symmetrical:
|
if instance.__class__ == rel_model and symmetrical:
|
||||||
_remove_m2m_items(rel_model, join_table, target_col_name,
|
_remove_m2m_items(rel_model, join_table, target_col_name,
|
||||||
source_col_name, instance._get_pk_val(), *objs)
|
source_col_name, instance._get_pk_val(), *objs)
|
||||||
@ -315,7 +315,7 @@ class ReverseManyRelatedObjectsDescriptor(object):
|
|||||||
def clear(self):
|
def clear(self):
|
||||||
_clear_m2m_items(join_table, source_col_name, instance._get_pk_val())
|
_clear_m2m_items(join_table, source_col_name, instance._get_pk_val())
|
||||||
|
|
||||||
# If this is a symmmetrical m2m relation to self, clear the mirror entry in the m2m table
|
# If this is a symmetrical m2m relation to self, clear the mirror entry in the m2m table
|
||||||
if instance.__class__ == rel_model and symmetrical:
|
if instance.__class__ == rel_model and symmetrical:
|
||||||
_clear_m2m_items(join_table, target_col_name, instance._get_pk_val())
|
_clear_m2m_items(join_table, target_col_name, instance._get_pk_val())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user