-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7da645c
commit 4a747c3
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
leasing/viewsets/old_dwellings_in_housing_companies_price_index.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from rest_framework import viewsets | ||
|
||
from leasing.filters import OldDwellingsInHousingCompaniesPriceIndexFilter | ||
from leasing.models import OldDwellingsInHousingCompaniesPriceIndex | ||
from leasing.serializers.rent import OldDwellingsInHousingCompaniesPriceIndexSerializer | ||
|
||
|
||
class OldDwellingsInHousingCompaniesPriceIndexViewSet(viewsets.ReadOnlyModelViewSet): | ||
queryset = OldDwellingsInHousingCompaniesPriceIndex.objects.all() | ||
serializer_class = OldDwellingsInHousingCompaniesPriceIndexSerializer | ||
filterset_class = OldDwellingsInHousingCompaniesPriceIndexFilter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters