faucet.models
Define faucet related models.
Copyright (C) 2018 Gitcoin Core
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.
FaucetRequestManager
FaucetRequestManager(self)
Define the Faucet Request query manager.
user
FaucetRequestManager.user(self, profile)
Fetch the FaucetRequests matching the provided profile.
Args: profile (str): The Github username.
Returns: QuerySet: The filtered FaucetRequest results.
FaucetRequest
FaucetRequest(self, *args, **kwargs)
Define the Faucet Request model.
address
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
amount
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
comment
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
comment_admin
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
fulfill_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
fulfilled
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
_method
FaucetRequest._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)
_method
FaucetRequest._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)
_method
FaucetRequest._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)
_method
FaucetRequest._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)
github_meta
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
github_username
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
profile
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Child.parent
is a ForwardManyToOneDescriptor
instance.
profile_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
rejected
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.