def unsubscribe_from_creator(user_id, creator_id):
 subscribers_model_creator = user_models.UserSubscribersModel.get(creator_id, strict=False)
 subscriptions_model_user = user_models.UserSubscriptionsModel.get(user_id, strict=False)
 if (user_id in subscribers_model_creator.subscriber_ids):
  subscribers_model_creator.subscriber_ids.remove(user_id)
  subscriptions_model_user.creator_ids.remove(creator_id)
  subscribers_model_creator.put()
  subscriptions_model_user.put()

def unsubscribe_from_creator ( user_id , creator_id ) : subscribers_model_creator = user_models . UserSubscribersModel . get ( creator_id , strict = False ) subscriptions_model_user = user_models . UserSubscriptionsModel . get ( user_id , strict = False ) if ( user_id in subscribers_model_creator . subscriber_ids ) : subscribers_model_creator . subscriber_ids . remove ( user_id ) subscriptions_model_user . creator_ids . remove ( creator_id ) subscribers_model_creator . put ( ) subscriptions_model_user . put ( )
unsubscribe a user from a creator .