def auto_through(field):
 return ((not field.rel.through) or getattr(getattr(field.rel.through, '_meta', None), 'auto_created', False))

def auto_through ( field ) : return ( ( not field . rel . through ) or getattr ( getattr ( field . rel . through , '_meta' , None ) , 'auto_created' , False ) )
returns if the m2m class passed in has an autogenerated through table or not .