Skip to content
Snippets Groups Projects
Verified Commit ed6a225c authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Add more allowed fields to GraphQL

parent 172342bc
No related branches found
No related tags found
2 merge requests!1237Release 3.0,!1183Release 3.0
Pipeline #118283 passed
......@@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog`_,
and this project adheres to `Semantic Versioning`_.
Unreleased
----------
Fixed
~~~~~
* GraphQL endpoints for groups, persons, and notifications didn't expose all necessary fields.
`3.0b3`_ - 2023-03-19
---------------------
......
......@@ -11,6 +11,8 @@ class GroupType(DjangoObjectType):
class Meta:
model = Group
fields = [
"id",
"school_term",
"name",
"short_name",
"members",
......
......@@ -10,6 +10,7 @@ class NotificationType(DjangoObjectType):
class Meta:
model = Notification
fields = [
"id",
"sender",
"recipient",
"title",
......
......@@ -26,6 +26,7 @@ class PersonType(DjangoObjectType):
class Meta:
model = Person
fields = [
"id",
"user",
"first_name",
"last_name",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment