def create_membership_push_to_timeline(sender, instance, created, **kwargs):
 if (created and instance.user and (instance.user != instance.project.owner)):
  created_datetime = instance.created_at
  _push_to_timelines(instance.project, instance.user, instance, 'create', created_datetime)

def create_membership_push_to_timeline ( sender , instance , created , ** kwargs ) : if ( created and instance . user and ( instance . user != instance . project . owner ) ) : created_datetime = instance . created_at _push_to_timelines ( instance . project , instance . user , instance , 'create' , created_datetime )
creating new membership with associated user .