Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
'lookup_field as slug to JobOfferView
  • Loading branch information
DEENUU1 committed Dec 17, 2023
1 parent 59543ce commit e9360c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions offer/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def get(self, *args, **kwargs):


class JobOfferView(ViewSet):
lookup_field = 'slug'

def retrieve(self, request, slug: str = None):
queryset = JobOffer.objects.all()
Expand Down

0 comments on commit e9360c2

Please sign in to comment.