-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #641 from akvo/feature/632_rest_framework
[#632] rest framework
- Loading branch information
Showing
53 changed files
with
1,019 additions
and
98 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,55 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Akvo RSR is covered by the GNU Affero General Public License. | ||
# See more details in the license.txt file located at the root folder of the Akvo RSR module. | ||
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. | ||
|
||
from .benchmark import BenchmarkSerializer | ||
from .benchmark_name import BenchmarknameSerializer | ||
from .budget_item import BudgetItemSerializer | ||
from .budget_item_label import BudgetItemLabelSerializer | ||
from .category import CategorySerializer | ||
from .country import CountrySerializer | ||
from .focus_area import FocusAreaSerializer | ||
from .goal import GoalSerializer | ||
from .internal_organisation_id import InternalOrganisationIDSerializer | ||
from .invoice import InvoiceSerializer | ||
from .link import LinkSerializer | ||
from .organisation import OrganisationSerializer | ||
from .organisation_location import OrganisationLocationSerializer | ||
from .partner_site import PartnerSiteSerializer | ||
from .partner_type import PartnerTypeSerializer | ||
from .partnership import PartnershipSerializer | ||
from .project import ProjectSerializer | ||
from .project_comment import ProjectCommentSerializer | ||
from .project_location import ProjectLocationSerializer | ||
from .project_update import ProjectUpdateSerializer | ||
from .publishing_status import PublishingStatusSerializer | ||
from .user import UserSerializer | ||
from .user_profile import UserProfileSerializer | ||
|
||
__all__ = [ | ||
'BenchmarkSerializer', | ||
'BenchmarknameSerializer', | ||
'BudgetItemSerializer', | ||
'BudgetItemLabelSerializer', | ||
'CategorySerializer,' | ||
'CountrySerializer', | ||
'FocusAreaSerializer', | ||
'GoalSerializer', | ||
'InternalOrganisationIDSerializer', | ||
'InvoiceSerializer', | ||
'LinkSerializer', | ||
'OrganisationSerializer', | ||
'OrganisationLocationSerializer', | ||
'PartnerSiteSerializer', | ||
'PartnerTypeSerializer', | ||
'PartnershipSerializer', | ||
'ProjectSerializer', | ||
'ProjectCommentSerializer', | ||
'ProjectLocationSerializer', | ||
'ProjectUpdateSerializer', | ||
'PublishingStatusSerializer', | ||
'UserSerializer,' | ||
'UserProfileSerializer', | ||
] |
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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Akvo RSR is covered by the GNU Affero General Public License. | ||
# See more details in the license.txt file located at the root folder of the Akvo RSR module. | ||
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. | ||
|
||
|
||
from akvo.rsr.models import Benchmark | ||
|
||
from .rsr_serializer import BaseRSRSerializer | ||
|
||
|
||
class BenchmarkSerializer(BaseRSRSerializer): | ||
|
||
class Meta: | ||
model = Benchmark | ||
fields = ( | ||
) |
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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Akvo RSR is covered by the GNU Affero General Public License. | ||
# See more details in the license.txt file located at the root folder of the Akvo RSR module. | ||
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. | ||
|
||
|
||
from akvo.rsr.models import Benchmarkname | ||
|
||
from .rsr_serializer import BaseRSRSerializer | ||
|
||
|
||
class BenchmarknameSerializer(BaseRSRSerializer): | ||
|
||
class Meta: | ||
model = Benchmarkname | ||
fields = ( | ||
) |
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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Akvo RSR is covered by the GNU Affero General Public License. | ||
# See more details in the license.txt file located at the root folder of the Akvo RSR module. | ||
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. | ||
|
||
|
||
from akvo.rsr.models import BudgetItem | ||
|
||
from .rsr_serializer import BaseRSRSerializer | ||
|
||
|
||
class BudgetItemSerializer(BaseRSRSerializer): | ||
|
||
class Meta: | ||
model = BudgetItem | ||
fields = ( | ||
) |
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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Akvo RSR is covered by the GNU Affero General Public License. | ||
# See more details in the license.txt file located at the root folder of the Akvo RSR module. | ||
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. | ||
|
||
|
||
from akvo.rsr.models import BudgetItemLabel | ||
|
||
from .rsr_serializer import BaseRSRSerializer | ||
|
||
|
||
class BudgetItemLabelSerializer(BaseRSRSerializer): | ||
|
||
class Meta: | ||
model = BudgetItemLabel | ||
fields = ( | ||
) |
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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Akvo RSR is covered by the GNU Affero General Public License. | ||
# See more details in the license.txt file located at the root folder of the Akvo RSR module. | ||
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. | ||
|
||
|
||
from akvo.rsr.models import Category | ||
|
||
from .rsr_serializer import BaseRSRSerializer | ||
|
||
|
||
class CategorySerializer(BaseRSRSerializer): | ||
|
||
class Meta: | ||
model = Category | ||
fields = ( | ||
) |
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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Akvo RSR is covered by the GNU Affero General Public License. | ||
# See more details in the license.txt file located at the root folder of the Akvo RSR module. | ||
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. | ||
|
||
|
||
from akvo.rsr.models import Country | ||
|
||
from .rsr_serializer import BaseRSRSerializer | ||
|
||
|
||
class CountrySerializer(BaseRSRSerializer): | ||
|
||
class Meta: | ||
model = Country | ||
fields = ( | ||
) |
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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Akvo RSR is covered by the GNU Affero General Public License. | ||
# See more details in the license.txt file located at the root folder of the Akvo RSR module. | ||
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. | ||
|
||
|
||
from akvo.rsr.models import FocusArea | ||
|
||
from .rsr_serializer import BaseRSRSerializer | ||
|
||
|
||
class FocusAreaSerializer(BaseRSRSerializer): | ||
|
||
class Meta: | ||
model = FocusArea | ||
fields = ( | ||
) |
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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Akvo RSR is covered by the GNU Affero General Public License. | ||
# See more details in the license.txt file located at the root folder of the Akvo RSR module. | ||
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. | ||
|
||
|
||
from akvo.rsr.models import Goal | ||
|
||
from .rsr_serializer import BaseRSRSerializer | ||
|
||
|
||
class GoalSerializer(BaseRSRSerializer): | ||
|
||
class Meta: | ||
model = Goal | ||
fields = ( | ||
) |
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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Akvo RSR is covered by the GNU Affero General Public License. | ||
# See more details in the license.txt file located at the root folder of the Akvo RSR module. | ||
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. | ||
|
||
|
||
from akvo.rsr.models import InternalOrganisationID | ||
|
||
from .rsr_serializer import BaseRSRSerializer | ||
|
||
|
||
class InternalOrganisationIDSerializer(BaseRSRSerializer): | ||
|
||
class Meta: | ||
model = InternalOrganisationID | ||
fields = ( | ||
) |
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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Akvo RSR is covered by the GNU Affero General Public License. | ||
# See more details in the license.txt file located at the root folder of the Akvo RSR module. | ||
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. | ||
|
||
|
||
from akvo.rsr.models import Invoice | ||
|
||
from .rsr_serializer import BaseRSRSerializer | ||
|
||
|
||
class InvoiceSerializer(BaseRSRSerializer): | ||
|
||
class Meta: | ||
model = Invoice | ||
fields = ( | ||
) |
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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Akvo RSR is covered by the GNU Affero General Public License. | ||
# See more details in the license.txt file located at the root folder of the Akvo RSR module. | ||
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. | ||
|
||
|
||
from akvo.rsr.models import Link | ||
|
||
from .rsr_serializer import BaseRSRSerializer | ||
|
||
|
||
class LinkSerializer(BaseRSRSerializer): | ||
|
||
class Meta: | ||
model = Link | ||
fields = ( | ||
) |
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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Akvo RSR is covered by the GNU Affero General Public License. | ||
# See more details in the license.txt file located at the root folder of the Akvo RSR module. | ||
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. | ||
|
||
|
||
from akvo.rsr.models import Organisation | ||
|
||
from .rsr_serializer import BaseRSRSerializer | ||
|
||
|
||
class OrganisationSerializer(BaseRSRSerializer): | ||
|
||
class Meta: | ||
model = Organisation | ||
fields = ( | ||
) |
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,19 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Akvo RSR is covered by the GNU Affero General Public License. | ||
# See more details in the license.txt file located at the root folder of the Akvo RSR module. | ||
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. | ||
|
||
|
||
from akvo.rsr.models import OrganisationLocation | ||
|
||
from .rsr_serializer import BaseRSRSerializer | ||
|
||
|
||
class OrganisationLocationSerializer(BaseRSRSerializer): | ||
|
||
class Meta: | ||
model = OrganisationLocation | ||
fields = ( | ||
) | ||
|
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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Akvo RSR is covered by the GNU Affero General Public License. | ||
# See more details in the license.txt file located at the root folder of the Akvo RSR module. | ||
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. | ||
|
||
|
||
from akvo.rsr.models import PartnerSite | ||
|
||
from .rsr_serializer import BaseRSRSerializer | ||
|
||
|
||
class PartnerSiteSerializer(BaseRSRSerializer): | ||
|
||
class Meta: | ||
model = PartnerSite | ||
fields = ( | ||
) |
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,18 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
# Akvo RSR is covered by the GNU Affero General Public License. | ||
# See more details in the license.txt file located at the root folder of the Akvo RSR module. | ||
# For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >. | ||
|
||
|
||
from akvo.rsr.models import PartnerType | ||
|
||
from .rsr_serializer import BaseRSRSerializer | ||
|
||
|
||
class PartnerTypeSerializer(BaseRSRSerializer): | ||
|
||
class Meta: | ||
model = PartnerType | ||
fields = ( | ||
) |
Oops, something went wrong.