# occurs for symmetrical m2m relations to self). If this is the
# case, there are no clashes to check for this field, as there are
# no reverse descriptors for this field.
ifrel_nameisnotNone:
ifnotf.rel.is_hidden():
forrinrel_opts.fields:
ifr.name==rel_name:
e.add(opts,"Accessor for m2m field '%s' clashes with field '%s.%s'. Add a related_name argument to the definition for '%s'."%(f.name,rel_opts.object_name,r.name,f.name))