grants.router

GrantCLRPagination

GrantCLRPagination(self, /, *args, **kwargs)

page_size

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

page_size_query_param

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.

GrantsClrViewSet

GrantsClrViewSet(self, **kwargs)

filterset_fields

Built-in mutable sequence.

If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.

queryset

Represent a lazy database lookup for a set of objects.

GrantCLRSerializer

GrantsClrViewSet.GrantCLRSerializer(self, *args, **kwargs)

Handle metadata of CLR rounds

GrantCLRPagination

GrantsClrViewSet.GrantCLRPagination(self, /, *args, **kwargs)

dispatch

GrantsClrViewSet.dispatch(self, request, *args, **kwargs)

.dispatch() is pretty much the same as Django's regular dispatch, but with extra hooks for startup, finalize, and exception handling.

GrantCollectionPagination

GrantCollectionPagination(self, /, *args, **kwargs)

page_size

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

page_size_query_param

str(object='') -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.str() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to 'strict'.

GrantCollectionViewSet

GrantCollectionViewSet(self, **kwargs)

filterset_fields

Built-in mutable sequence.

If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.

queryset

Handle the manager queryset for Collections.

GrantCollectionPagination

GrantCollectionViewSet.GrantCollectionPagination(self, /, *args, **kwargs)

GrantCollectionSerializer

GrantCollectionViewSet.GrantCollectionSerializer(self, *args, **kwargs)

Handle metadata of CLR rounds

GrantTypeViewSet

GrantTypeViewSet(self, **kwargs)

queryset

Represent a lazy database lookup for a set of objects.

GrantTypeSerializer

GrantTypeViewSet.GrantTypeSerializer(self, *args, **kwargs)

Handle metadata of CLR rounds

GranTagFilter

GranTagFilter(self, data=None, queryset=None, *, request=None, prefix=None)

base_filters

Dictionary that remembers insertion order

declared_filters

Dictionary that remembers insertion order

Meta

GranTagFilter.Meta(self, /, *args, **kwargs)

GrantTagViewSet

GrantTagViewSet(self, **kwargs)

queryset

Represent a lazy database lookup for a set of objects.

GranTagFilter

GrantTagViewSet.GranTagFilter(self, data=None, queryset=None, *, request=None, prefix=None)

GrantTagSerializer

GrantTagViewSet.GrantTagSerializer(self, *args, **kwargs)

Handle metadata of CLR rounds

dispatch

GrantTagViewSet.dispatch(self, request, *args, **kwargs)

.dispatch() is pretty much the same as Django's regular dispatch, but with extra hooks for startup, finalize, and exception handling.

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, *args, **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.

clr_round_metadata

GrantViewSet.clr_round_metadata(self, request)

Generate CLR Round metadata for Grants URL: api/v0.1/grants/get_clr_round_metadata/

contributions_rec_report

GrantViewSet.contributions_rec_report(self, request)

Generate Grantee Report for an Grant URL: api/v0.1/grants/contributions_rec_report/?id=&format=json

contributions_sent_report

GrantViewSet.contributions_sent_report(self, request)

Generate report for grant contributions made by an address URL: api/v0.1/grants/contributions_sent_report/?address=

&format=json