grants.router
SubscriptionViewSet
SubscriptionViewSet(self, **kwargs)
Handle the Subscription API view behavior.
filter_backends
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable's items.
If the argument is a tuple, the return value is the same object.
queryset
Represent a lazy database lookup for a set of objects.
get_queryset
SubscriptionViewSet.get_queryset(self)
Get the queryset for Subscription.
TODO: * Add filter functionality.
Returns: QuerySet: The Subscription queryset.
SubscriptionSerializer
SubscriptionViewSet.SubscriptionSerializer(self, instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)
Handle serializing the Subscription object.
GrantViewSet
GrantViewSet(self, **kwargs)
Handle the Grant API view behavior.
filter_backends
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable's items.
If the argument is a tuple, the return value is the same object.
queryset
Define the Grant default queryset and manager.
GrantSerializer
GrantViewSet.GrantSerializer(self, instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)
Handle serializing the Grant object.
get_queryset
GrantViewSet.get_queryset(self)
Get the queryset for Grant.
TODO: * Add additional filters.
Returns: QuerySet: The Grant queryset.