Skip to content

Commit

Permalink
Add city to school search fileds
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe committed May 19, 2024
1 parent 4a7a077 commit 6bbf15f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion personal/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class SchoolViewSet(viewsets.ModelViewSet):
serializer_class = SchoolSerializer
filterset_fields = ['district', 'district__county']
filter_backends = [DjangoFilterBackend, SearchFilter]
search_fields = ['name', 'street']
search_fields = ['name', 'street', 'city']

def destroy(self, request, *args, **kwargs):
"""Zmazanie školy"""
Expand Down

0 comments on commit 6bbf15f

Please sign in to comment.