8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 07:23:46 +00:00

Add missing case for STATE_EMAIL_NOT_YET_CONFIRMED state in API

This commit is contained in:
Jean-Romain Garnier 2020-04-17 16:34:34 +02:00 committed by Jean-Romain Garnier
parent f8dfb072eb
commit 98cbf79b01

View file

@ -513,6 +513,7 @@ class HomeCreationViewSet(viewsets.ReadOnlyModelViewSet):
queryset = users.User.objects.exclude(
Q(state=users.User.STATE_DISABLED)
| Q(state=users.User.STATE_NOT_YET_ACTIVE)
| Q(state=users.STATE_EMAIL_NOT_YET_CONFIRMED)
| Q(state=users.User.STATE_FULL_ARCHIVE)
)
serializer_class = serializers.BasicUserSerializer