def get_token(self, obj):
    (token, created) = Token.objects.get_or_create(user=obj)
    return token.key
def get_token(self, obj):
    (token, created) = Token.objects.get_or_create(user=obj)
    return token.key