Remove email from User API
@@ -7,7 +7,7 @@ User = get_user_model()
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
- fields = ["username", "email", "name", "url"]
+ fields = ["username", "name", "url"]
extra_kwargs = {
"url": {"view_name": "api:user-detail", "lookup_field": "username"}
