diff options
Diffstat (limited to 'api')
| -rw-r--r-- | api/viewsets.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/api/viewsets.py b/api/viewsets.py index 7ef1ba98..d17d1590 100644 --- a/api/viewsets.py +++ b/api/viewsets.py @@ -866,7 +866,7 @@ class NominationViewSet(ModelViewSet):      queryset = Nomination.objects.prefetch_related('author', 'user')      frozen_fields = ('author', 'inserted_at', 'user') -    def partial_update(self, request, *args, **kwargs): +    def update(self, request, *args, **kwargs):          for field in request.data:              if field in self.frozen_fields:                  raise ValidationError({field: ['This field cannot be updated.']}) | 
