diff --git a/cookbook/serializer.py b/cookbook/serializer.py index 239725e95..dc17c0b4a 100644 --- a/cookbook/serializer.py +++ b/cookbook/serializer.py @@ -201,7 +201,7 @@ class UserSerializer(WritableNestedModelSerializer): list_serializer_class = SpaceFilterSerializer model = User fields = ('id', 'username', 'first_name', 'last_name', 'display_name', 'is_staff', 'is_superuser', 'is_active') - read_only_fields = ('username',) + read_only_fields = ('id', 'username', 'display_name', 'is_staff', 'is_superuser', 'is_active') class GroupSerializer(UniqueFieldsMixin, WritableNestedModelSerializer): @@ -214,6 +214,7 @@ class GroupSerializer(UniqueFieldsMixin, WritableNestedModelSerializer): class Meta: model = Group fields = ('id', 'name') + read_only_fields = ('id', 'name') class FoodInheritFieldSerializer(UniqueFieldsMixin, WritableNestedModelSerializer): @@ -1514,6 +1515,7 @@ class FdcQuerySerializer(serializers.Serializer): totalPages = serializers.IntegerField() foods = FdcQueryFoodsSerializer(many=True) + # Export/Import Serializers class KeywordExportSerializer(KeywordSerializer): diff --git a/cookbook/templates/account/email.html b/cookbook/templates/account/email.html index fcbc8768d..d924fe0cd 100644 --- a/cookbook/templates/account/email.html +++ b/cookbook/templates/account/email.html @@ -7,13 +7,6 @@ {% block content %} - -
{% trans 'The following e-mail addresses are associated with your account:' %}
diff --git a/cookbook/templates/account/password_change.html b/cookbook/templates/account/password_change.html index b5d56e2a9..557dbccd8 100644 --- a/cookbook/templates/account/password_change.html +++ b/cookbook/templates/account/password_change.html @@ -6,12 +6,6 @@ {% block head_title %}{% trans "Change Password" %}{% endblock %} {% block content %} -Report generated on 24-Aug-2024 at 09:17:29 by pytest-html +
Report generated on 10-Apr-2025 at 17:29:06 by pytest-html v4.1.1
1 test took 00:00:24.
+1 test took 00:00:23.
(Un)check the boxes to filter the results.