dashboard.models
Copyright (C) 2017 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/.
Bounty_interested
Bounty_interested(self, *args, **kwargs)
Bounty_interested(id, bounty, interest)
bounty
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.
bounty_id
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.
interest
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.
interest_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Tool_votes
Tool_votes(self, *args, **kwargs)
Tool_votes(id, tool, toolvote)
id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
tool
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.
tool_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
toolvote
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.
toolvote_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
BountyQuerySet
BountyQuerySet(self, model=None, query=None, using=None, hints=None)
Handle the manager queryset for Bounties.
current
BountyQuerySet.current(self)
Filter results down to current bounties only.
stats_eligible
BountyQuerySet.stats_eligible(self)
Exclude results that we don't want to track in statistics.
exclude_by_status
BountyQuerySet.exclude_by_status(self, excluded_statuses=None)
Exclude results with a status matching the provided list.
filter_by_status
BountyQuerySet.filter_by_status(self, filtered_status=None)
Filter results with a status matching the provided list.
keyword
BountyQuerySet.keyword(self, keyword)
Filter results to all Bounty objects containing the keywords.
Args: keyword (str): The keyword to search title, issue description, and issue keywords by.
Returns: dashboard.models.BountyQuerySet: The QuerySet of bounties filtered by keyword.
hidden
BountyQuerySet.hidden(self)
Filter results to only bounties that have been manually hidden by moderators.
visible
BountyQuerySet.visible(self)
Filter results to only bounties not marked as hidden.
needs_review
BountyQuerySet.needs_review(self)
Filter results by bounties that need reviewed.
reviewed
BountyQuerySet.reviewed(self)
Filter results by bounties that have been reviewed.
warned
BountyQuerySet.warned(self)
Filter results by bounties that have been warned for inactivity.
escalated
BountyQuerySet.escalated(self)
Filter results by bounties that have been escalated for review.
closed
BountyQuerySet.closed(self)
Filter results by bounties that have been closed on Github.
not_started
BountyQuerySet.not_started(self)
Filter results by bounties that have not been picked up in 3+ days.
has_funds
BountyQuerySet.has_funds(self)
Filter results by bounties that are actively funded or funds have been dispersed.
Bounty
Bounty(self, *args, **kwargs)
Define the structure of a Bounty.
Attributes: BOUNTY_TYPES (list of tuples): The valid bounty types. EXPERIENCE_LEVELS (list of tuples): The valid experience levels. PROJECT_LENGTHS (list of tuples): The possible project lengths. STATUS_CHOICES (list of tuples): The valid status stages. FUNDED_STATUSES (list of str): The list of status types considered to have retained value. OPEN_STATUSES (list of str): The list of status types considered open. CLOSED_STATUSES (list of str): The list of status types considered closed. TERMINAL_STATUSES (list of str): The list of status types considered terminal states.
accepted
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
activities
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
additional_funding_summary
Return a dict describing the additional funding from crowdfunding that this object has
admin_mark_as_remarket_ready
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
admin_override_and_hide
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
admin_override_suspend_auto_approval
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
attached_job_description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
balance
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
bounty_owner_address
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
bounty_owner_email
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
bounty_owner_github_username
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
bounty_owner_name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
bounty_owner_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.
bounty_owner_profile_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
bounty_reserved_for_user
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.
bounty_reserved_for_user_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
bounty_type
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
BOUNTY_TYPES
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
bulk_payout_tips
Return the Bulk payout tips associated with this bounty.
canceled_bounty_reason
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
canceled_on
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
CLOSED_STATUSES
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
contract_address
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
current_bounty
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
estimated_hours
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
experience_level
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
EXPERIENCE_LEVELS
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
expires_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
fulfillment_accepted_on
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
fulfillment_started_on
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
fulfillment_submitted_on
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
fulfillments
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
FUNDED_STATUSES
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
funding_organisation
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
_method
Bounty._method(self, *, field=<django.db.models.fields.CharField: bounty_type>)
_method
Bounty._method(self, *, field=<django.db.models.fields.CharField: experience_level>)
_method
Bounty._method(self, *, field=<django.db.models.fields.CharField: idx_status>)
_method
Bounty._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)
_method
Bounty._method(self, *, field=<django.db.models.fields.DateTimeField: expires_date>, is_next=True, **kwargs)
_method
Bounty._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)
_method
Bounty._method(self, *, field=<django.db.models.fields.DateTimeField: web3_created>, is_next=True, **kwargs)
_method
Bounty._method(self, *, field=<django.db.models.fields.CharField: permission_type>)
_method
Bounty._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)
_method
Bounty._method(self, *, field=<django.db.models.fields.DateTimeField: expires_date>, is_next=False, **kwargs)
_method
Bounty._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)
_method
Bounty._method(self, *, field=<django.db.models.fields.DateTimeField: web3_created>, is_next=False, **kwargs)
_method
Bounty._method(self, *, field=<django.db.models.fields.CharField: project_length>)
_method
Bounty._method(self, *, field=<django.db.models.fields.CharField: project_type>)
github_comments
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
github_issue_details
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
github_url
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.
idx_experience_level
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
idx_project_length
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
idx_status
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
interested
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example::
class Pizza(Model):
toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
and Topping.pizzas
are ManyToManyDescriptor
instances.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
interested_comment
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
is_legacy
Determine if the Bounty is legacy based on sunset date.
Todo: * Remove this method following legacy bounty sunsetting.
Returns: bool: Whether or not the Bounty is using the legacy contract.
is_open
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
is_project_type_fulfilled
Determine whether or not the Project Type is currently fulfilled.
Todo: * Add remaining Project Type fulfillment handling.
Returns: bool: Whether or not the Bounty Project Type is fully staffed.
issue_description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
last_comment_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
match_set
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
metadata
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
network
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
now
Return the time now in the current timezone.
num_fulfillments
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
OPEN_STATUSES
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
override_status
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
paid
Return list of users paid for this bounty.
past_expiration_date
Return true IFF issue is past expiration date
past_hard_expiration_date
Return true IFF issue is past smart contract expiration date and therefore cannot ever be claimed again
permission_type
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
PERMISSION_TYPES
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
privacy_preferences
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
project_length
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
PROJECT_LENGTHS
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
project_type
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
PROJECT_TYPES
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
raw_data
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
snooze_warnings_for_days
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
standard_bounties_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
status
Determine the status of the Bounty.
Raises: Exception: Catch whether or not any exception is encountered and return unknown for status.
Returns: str: The status of the Bounty.
STATUS_CHOICES
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.
submissions_comment
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
TERMINAL_STATUSES
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
tips
Return the tips associated with this bounty.
title
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
title_or_desc
Return the title of the issue.
token_address
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
token_name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
token_value_in_usdt
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
token_value_time_peg
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
value_in_eth
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
value_in_token
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
value_in_usdt
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
value_in_usdt_now
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
value_true
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
web3_created
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
web3_type
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
save
Bounty.save(self, *args, **kwargs)
Define custom handling for saving bounties.
get_absolute_url
Bounty.get_absolute_url(self)
Get the absolute URL for the Bounty.
Returns: str: The absolute URL for the Bounty.
get_relative_url
Bounty.get_relative_url(self, preceding_slash=True)
Get the relative URL for the Bounty.
Attributes: preceding_slash (bool): Whether or not to include a preceding slash.
Returns: str: The relative URL for the Bounty.
snooze_url
Bounty.snooze_url(self, num_days)
Get the bounty snooze URL.
Args: num_days (int): The number of days to snooze the Bounty.
Returns: str: The snooze URL based on the provided number of days.
approve_worker_url
Bounty.approve_worker_url(self, worker)
Get the bounty work approval URL.
Args: worker (string): The handle to approve
Returns: str: The work approve URL based on the worker name
reject_worker_url
Bounty.reject_worker_url(self, worker)
Get the bounty work rejection URL.
Args: worker (string): The handle to reject
Returns: str: The work reject URL based on the worker name
is_hunter
Bounty.is_hunter(self, handle)
Determine whether or not the profile is the bounty hunter.
Args: handle (str): The profile handle to be compared.
Returns: bool: Whether or not the user is the bounty hunter.
is_fulfiller
Bounty.is_fulfiller(self, handle)
Determine whether or not the profile is the bounty is_fulfiller.
Args: handle (str): The profile handle to be compared.
Returns: bool: Whether or not the user is the bounty is_fulfiller.
is_funder
Bounty.is_funder(self, handle)
Determine whether or not the profile is the bounty funder.
Args: handle (str): The profile handle to be compared.
Returns: bool: Whether or not the user is the bounty funder.
has_started_work
Bounty.has_started_work(self, handle, pending=False)
Determine whether or not the profile has started work
Args: handle (str): The profile handle to be compared.
Returns: bool: Whether or not the user has started work.
get_avatar_url
Bounty.get_avatar_url(self, gitcoin_logo_flag=False)
Return the local avatar URL.
get_github_api_url
Bounty.get_github_api_url(self)
Get the Github API URL associated with the bounty.
Returns: str: The Github API URL associated with the issue.
fetch_issue_item
Bounty.fetch_issue_item(self, item_type='body')
Fetch the item type of an issue.
Args: type (str): The github API response body item to be fetched.
Returns: str: The item content.
fetch_issue_comments
Bounty.fetch_issue_comments(self, save=True)
Fetch issue comments for the associated Github issue.
Args: save (bool): Whether or not to save the Bounty after fetching.
Returns: dict: The comments data dictionary provided by Github.
action_urls
Bounty.action_urls(self)
Provide URLs for bounty related actions.
Returns: dict: A dictionary of action URLS for this bounty.
is_notification_eligible
Bounty.is_notification_eligible(self, var_to_check=True)
Determine whether or not a notification is eligible for transmission outside of production.
Returns: bool: Whether or not the Bounty is eligible for outbound notifications.
BountyFulfillmentQuerySet
BountyFulfillmentQuerySet(self, model=None, query=None, using=None, hints=None)
Handle the manager queryset for BountyFulfillments.
accepted
BountyFulfillmentQuerySet.accepted(self)
Filter results to accepted bounty fulfillments.
submitted
BountyFulfillmentQuerySet.submitted(self)
Exclude results that have not been submitted.
BountyFulfillment
BountyFulfillment(self, *args, **kwargs)
The structure of a fulfillment on a Bounty.
accepted
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
accepted_on
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
bounty
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.
bounty_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
fulfiller_address
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
fulfiller_email
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
fulfiller_github_url
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
fulfiller_github_username
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
fulfiller_hours_worked
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
fulfiller_metadata
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
fulfiller_name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
fulfillment_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
_method
BountyFulfillment._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)
_method
BountyFulfillment._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)
_method
BountyFulfillment._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)
_method
BountyFulfillment._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)
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.
to_json
Define the JSON representation of BountyFulfillment.
Returns: dict: A JSON representation of BountyFulfillment.
save
BountyFulfillment.save(self, *args, **kwargs)
Define custom handling for saving bounty fulfillments.
BountySyncRequest
BountySyncRequest(self, *args, **kwargs)
Define the structure for bounty syncing.
_method
BountySyncRequest._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)
_method
BountySyncRequest._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)
_method
BountySyncRequest._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)
_method
BountySyncRequest._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)
github_url
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.
processed
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Subscription
Subscription(self, *args, **kwargs)
Subscription(id, created_on, modified_on, email, raw_data, ip)
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
_method
Subscription._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)
_method
Subscription._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)
_method
Subscription._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)
_method
Subscription._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)
id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
ip
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
raw_data
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
SendCryptoAssetQuerySet
SendCryptoAssetQuerySet(self, model=None, query=None, using=None, hints=None)
Handle the manager queryset for SendCryptoAsset.
send_success
SendCryptoAssetQuerySet.send_success(self)
Filter results down to successful sends only.
send_pending
SendCryptoAssetQuerySet.send_pending(self)
Filter results down to pending sends only.
send_happy_path
SendCryptoAssetQuerySet.send_happy_path(self)
Filter results down to pending/success sends only.
send_fail
SendCryptoAssetQuerySet.send_fail(self)
Filter results down to failed sends only.
receive_success
SendCryptoAssetQuerySet.receive_success(self)
Filter results down to successful receives only.
receive_pending
SendCryptoAssetQuerySet.receive_pending(self)
Filter results down to pending receives only.
receive_happy_path
SendCryptoAssetQuerySet.receive_happy_path(self)
Filter results down to pending receives only.
receive_fail
SendCryptoAssetQuerySet.receive_fail(self)
Filter results down to failed receives only.
SendCryptoAsset
SendCryptoAsset(self, *args, **kwargs)
Abstract Base Class to handle the model for both Tips and Kudos.
amount
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
comments_public
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
emails
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
from_address
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
from_email
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
from_name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
from_username
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
_method
SendCryptoAsset._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)
_method
SendCryptoAsset._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)
_method
SendCryptoAsset._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)
_method
SendCryptoAsset._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)
_method
SendCryptoAsset._method(self, *, field=<django.db.models.fields.CharField: receive_tx_status>)
_method
SendCryptoAsset._method(self, *, field=<django.db.models.fields.CharField: tx_status>)
github_url
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
ip
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
is_for_bounty_fulfiller
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
metadata
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
network
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
primary_email
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
receive_address
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
receive_tx_status
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
receive_tx_time
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
receive_txid
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
received_on
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
tokenAddress
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
tokenName
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
tx_status
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
TX_STATUS_CHOICES
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.
tx_time
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
txid
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
url
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
username
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
web3_type
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Meta
SendCryptoAsset.Meta(self, /, *args, **kwargs)
is_notification_eligible
SendCryptoAsset.is_notification_eligible(self, var_to_check=True)
Determine whether or not a notification is eligible for transmission outside of production.
Returns: bool: Whether or not the Tip is eligible for outbound notifications.
update_tx_status
SendCryptoAsset.update_tx_status(self)
Updates the tx status according to what infura says about the tx
update_receive_tx_status
SendCryptoAsset.update_receive_tx_status(self)
Updates the receive tx status according to what infura says about the receive tx
Tip
Tip(self, *args, **kwargs)
Inherit from SendCryptoAsset base class, and extra fields that are needed for Tips.
activities
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
comments_priv
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
expires_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
_method
Tip._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)
_method
Tip._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)
_method
Tip._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)
_method
Tip._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)
_method
Tip._method(self, *, field=<django.db.models.fields.CharField: receive_tx_status>)
_method
Tip._method(self, *, field=<django.db.models.fields.CharField: tx_status>)
id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
recipient_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.
recipient_profile_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
sender_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.
sender_profile_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
InterestQuerySet
InterestQuerySet(self, model=None, query=None, using=None, hints=None)
Handle the manager queryset for Interests.
needs_review
InterestQuerySet.needs_review(self)
Filter results to Interest objects requiring review by moderators.
warned
InterestQuerySet.warned(self)
Filter results to Interest objects that are currently in warning.
Interest
Interest(self, *args, **kwargs)
Define relationship for profiles expressing interest on a bounty.
acceptance_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
bounty_set
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example::
class Pizza(Model):
toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
and Topping.pizzas
are ManyToManyDescriptor
instances.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
created
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
_method
Interest._method(self, *, field=<django.db.models.fields.CharField: status>)
id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
issue_message
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
pending
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.
status
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
STATUS_OKAY
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'.
STATUS_PENDING
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'.
STATUS_REVIEW
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'.
STATUS_SNOOZED
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'.
STATUS_WARNED
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'.
WORK_STATUSES
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.
mark_for_review
Interest.mark_for_review(self)
Flag the Interest for review by the moderation team.
ActivityQuerySet
ActivityQuerySet(self, model=None, query=None, using=None, hints=None)
Handle the manager queryset for Activities.
needs_review
ActivityQuerySet.needs_review(self)
Filter results to Activity objects to be reviewed by moderators.
reviewed
ActivityQuerySet.reviewed(self)
Filter results to Activity objects to be reviewed by moderators.
warned
ActivityQuerySet.warned(self)
Filter results to Activity objects to be reviewed by moderators.
escalated_for_removal
ActivityQuerySet.escalated_for_removal(self)
Filter results to Activity objects to be reviewed by moderators.
Activity
Activity(self, *args, **kwargs)
Represent Start work/Stop work event.
Attributes: ACTIVITY_TYPES (list of tuples): The valid activity types.
activity_type
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
ACTIVITY_TYPES
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
bounty
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.
bounty_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
created
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
_method
Activity._method(self, *, field=<django.db.models.fields.CharField: activity_type>)
id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
kudos
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.
kudos_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
metadata
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
needs_review
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.
tip
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.
tip_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
to_dict
Activity.to_dict(self, fields=None, exclude=None)
Define the standard to dict representation of the object.
Args: fields (list): The list of fields to include. If not provided, include all fields. If not provided, all fields are included. Defaults to: None. exclude (list): The list of fields to exclude. If not provided, no fields are excluded. Default to: None.
Returns: dict: The dictionary representation of the object.
LabsResearch
LabsResearch(self, *args, **kwargs)
Define the structure of Labs Research object.
description
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.
image
Just like the FileDescriptor, but for ImageFields. The only difference is assigning the width/height to the width_field/height_field, if appropriate.
link
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
title
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
upcoming
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
ProfileQuerySet
ProfileQuerySet(self, model=None, query=None, using=None, hints=None)
Define the Profile QuerySet to be used as the objects manager.
visible
ProfileQuerySet.visible(self)
Filter results to only visible profiles.
hidden
ProfileQuerySet.hidden(self)
Filter results to only hidden profiles.
Profile
Profile(self, *args, **kwargs)
Define the structure of the user profile.
TODO: * Remove all duplicate identity related information already stored on User.
access_token
The Github access token associated with this Profile.
Returns: str: The associated Github access token.
actions
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
activities
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
alumni
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
avatar_baseavatar_related
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
bounties_funded
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
bounty_requests
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
bountyrequestmeta_set
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
bulk_transfer_redemptions
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
bulk_transfers
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
data
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
discord_repos
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
discord_webhook_url
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.
email_subscriptions
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
ens_registration
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
faucet_requests
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
form_submission_records
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
fulfilled
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
_method
Profile._method(self, *, field=<django.db.models.fields.CharField: job_search_status>)
_method
Profile._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)
_method
Profile._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)
_method
Profile._method(self, *, field=<django.db.models.fields.CharField: pref_lang_code>)
_method
Profile._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)
_method
Profile._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)
get_quarterly_stats
Generate last 90 days stats for this user.
Returns: dict : containing the following information 'user_total_earned_eth': Total earnings of user in ETH. 'user_total_earned_usd': Total earnings of user in USD. 'user_total_funded_usd': Total value of bounties funded by the user on bounties in done status in USD 'user_total_funded_hours': Total hours input by the developers on the fulfillment of bounties created by the user in USD 'user_fulfilled_bounties_count': Total bounties fulfilled by user 'user_fufilled_bounties': bool, if the user fulfilled bounties 'user_funded_bounties_count': Total bounties funded by the user 'user_funded_bounties': bool, if the user funded bounties in the last quarter 'user_funded_bounty_developers': Unique set of users that fulfilled bounties funded by the user 'user_avg_hours_per_funded_bounty': Average hours input by developer on fulfillment per bounty 'user_avg_hourly_rate_per_funded_bounty': Average hourly rate in dollars per bounty funded by user 'user_avg_eth_earned_per_bounty': Average earning in ETH earned by user per bounty 'user_avg_usd_earned_per_bounty': Average earning in USD earned by user per bounty 'user_num_completed_bounties': Total no. of bounties completed. 'user_num_funded_fulfilled_bounties': Total bounites that were funded by the user and fulfilled 'user_bounty_completion_percentage': Percentage of bounties successfully completed by the user 'user_funded_fulfilled_percentage': Percentage of bounties funded by the user that were fulfilled 'user_active_in_last_quarter': bool, if the user was active in last quarter 'user_no_of_languages': No of languages user used while working on bounties. 'user_languages': Languages that were used in bounties that were worked on. 'relevant_bounties': a list of Bounty(s) that would match the skillset input by the user into the Match tab of their settings
github_access_token
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
github_events
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
grant_admin
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
grant_contributor
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
grant_teams
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example::
class Pizza(Model):
toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
and Topping.pizzas
are ManyToManyDescriptor
instances.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
handle
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
hide_profile
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.
interested
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
is_moderator
Determine whether or not the user is a moderator.
Returns: bool: Whether or not the user is a moderator.
is_staff
Determine whether or not the user is a staff member.
Returns: bool: Whether or not the user is a member of the staff.
JOB_SEARCH_STATUS
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
job_search_status
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
keywords
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
kudos_wallets
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
last_sync_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
last_visit
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
leaderboard_ranks
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
max_num_issues_start_work
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
max_tip_amount_usdt_per_tx
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
max_tip_amount_usdt_per_week
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
organizations
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
pref_lang_code
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
preferred_kudos_wallet
Accessor to the related object on the forward side of a one-to-one relation.
In the example::
class Restaurant(Model):
place = OneToOneField(Place, related_name='restaurant')
Restaurant.place
is a ForwardOneToOneDescriptor
instance.
preferred_kudos_wallet_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
preferred_payout_address
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
received_kudos
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
received_tips
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
request_ownership_change
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
reserved_bounties
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
sent_kudos
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
sent_tips
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
show_job_status
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
slack_channel
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
slack_repos
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
slack_token
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
suppress_leaderboard
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
token_approvals
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
trust_profile
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
user
Accessor to the related object on the forward side of a one-to-one relation.
In the example::
class Restaurant(Model):
place = OneToOneField(Place, related_name='restaurant')
Restaurant.place
is a ForwardOneToOneDescriptor
instance.
user_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
votes
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example::
class Child(Model):
parent = ForeignKey(Parent, related_name='children')
Parent.children
is a ReverseManyToOneDescriptor
instance.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
is_github_token_valid
Profile.is_github_token_valid(self)
Check whether or not a Github OAuth token is valid.
Args: access_token (str): The Github OAuth token.
Returns: bool: Whether or not the provided OAuth token is valid.
get_access_token
Profile.get_access_token(self, save=True)
Get the Github access token from User.
Args: save (bool): Whether or not to save the User access token to the profile.
Raises: Exception: The exception is raised in the event of any error and returns an empty string.
Returns: str: The Github access token.
get_slack_repos
Profile.get_slack_repos(self, join=False)
Get the profile's slack tracked repositories.
Args: join (bool): Whether or not to return a joined string representation. Defaults to: False.
Returns: list of str: If joined is False, a list of slack repositories. str: If joined is True, a combined string of slack repositories.
update_slack_integration
Profile.update_slack_integration(self, token, channel, repos)
Update the profile's slack integration settings.
Args: token (str): The profile's slack token. channel (str): The profile's slack channel. repos (list of str): The profile's github repositories to track.
get_discord_repos
Profile.get_discord_repos(self, join=False)
Get the profile's Discord tracked repositories.
Args: join (bool): Whether or not to return a joined string representation. Defaults to: False.
Returns: list of str: If joined is False, a list of discord repositories. str: If joined is True, a combined string of discord repositories.
update_discord_integration
Profile.update_discord_integration(self, webhook_url, repos)
Update the profile's Discord integration settings.
Args: webhook_url (str): The profile's Discord webhook url. repos (list of str): The profile's github repositories to track.
get_eth_sum
Profile.get_eth_sum(self, sum_type='collected', network='mainnet', bounties=None)
Get the sum of collected or funded ETH based on the provided type.
Args: sum_type (str): The sum to lookup. Defaults to: collected. network (str): The network to query results for. Defaults to: mainnet. bounties (dashboard.models.BountyQuerySet): Override the BountyQuerySet this function processes. Defaults to: None.
Returns: float: The total sum of all ETH of the provided type.
get_who_works_with
Profile.get_who_works_with(self, work_type='collected', network='mainnet', bounties=None)
Get an array of profiles that this user works with.
Args: work_type (str): The work type to lookup. Defaults to: collected. network (str): The network to query results for. Defaults to: mainnet. bounties (dashboard.models.BountyQuerySet): Override the BountyQuerySet this function processes. Defaults to: None.
Returns: dict: list of the profiles that were worked with (key) and the number of times they occured
get_funded_bounties
Profile.get_funded_bounties(self, network='mainnet')
Get the bounties that this user has funded
Args: network (string): the network to look at. Defaults to: mainnet.
Returns: queryset: list of bounties
get_bounty_and_tip_activities
Profile.get_bounty_and_tip_activities(self, network='mainnet')
Get bounty and tip related activities for this profile.
Args: network (str): The network to query results for. Defaults to: mainnet.
Returns: (dashboard.models.ActivityQuerySet): The query results.
to_dict
Profile.to_dict(self, activities=True, leaderboards=True, network=None, tips=True)
Get the dictionary representation with additional data.
Args: activities (bool): Whether or not to include activity queryset data. Defaults to: True. leaderboards (bool): Whether or not to include leaderboard position data. Defaults to: True. network (str): The Ethereum network to use for relevant queries. Defaults to: None (Environment specific). tips (bool): Whether or not to include tip data. Defaults to: True.
Attributes: params (dict): The context dictionary to be returned. network (str): The bounty network to operate on. query_kwargs (dict): The kwargs to be passed to all queries throughout the method. bounties (dashboard.models.BountyQuerySet): All bounties referencing this profile. fulfilled_bounties (dashboard.models.BountyQuerySet): All fulfilled bounties for this profile. funded_bounties (dashboard.models.BountyQuerySet): All funded bounties for this profile. orgs_bounties (dashboard.models.BountyQuerySet or None): All bounties belonging to this organization, if applicable. sum_eth_funded (float): The total amount of ETH funded. sum_eth_collected (float): The total amount of ETH collected.
Returns: dict: The profile card context.
post_login
post_login(sender, request, user, **kwargs)
Handle actions to take on user login.
post_logout
post_logout(sender, request, user, **kwargs)
Handle actions to take on user logout.
ProfileSerializer
ProfileSerializer(self, instance=None, data=<class 'rest_framework.fields.empty'>, **kwargs)
Handle serializing the Profile object.
Meta
ProfileSerializer.Meta(self, /, *args, **kwargs)
Define the profile serializer metadata.
to_representation
ProfileSerializer.to_representation(self, instance)
Provide the serialized representation of the Profile.
Args: instance (Profile): The Profile object to be serialized.
Returns: dict: The serialized Profile.
normalize_tip_usernames
normalize_tip_usernames(sender, instance, **kwargs)
Handle pre-save signals from Tips to normalize Github usernames.
UserAction
UserAction(self, *args, **kwargs)
Records Actions that a user has taken .
action
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
ACTION_TYPES
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
_method
UserAction._method(self, *, field=<django.db.models.fields.CharField: action>)
_method
UserAction._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)
_method
UserAction._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)
_method
UserAction._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)
_method
UserAction._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)
id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
ip_address
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
location_data
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
metadata
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.
user
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.
user_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
utm
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
CoinRedemption
CoinRedemption(self, *args, **kwargs)
Define the coin redemption schema.
amount
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
coinredemptionrequest
Accessor to the related object on the reverse side of a one-to-one relation.
In the example::
class Restaurant(Model):
place = OneToOneField(Place, related_name='restaurant')
Place.restaurant
is a ReverseOneToOneDescriptor
instance.
contract_address
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
expires_date
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
_method
CoinRedemption._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)
_method
CoinRedemption._method(self, *, field=<django.db.models.fields.DateTimeField: expires_date>, is_next=True, **kwargs)
_method
CoinRedemption._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)
_method
CoinRedemption._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)
_method
CoinRedemption._method(self, *, field=<django.db.models.fields.DateTimeField: expires_date>, is_next=False, **kwargs)
_method
CoinRedemption._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)
id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
network
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
shortcode
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
token_name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
url
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
to_checksum_address
to_checksum_address(sender, instance, **kwargs)
Handle pre-save signals from CoinRemptions to normalize the contract address.
CoinRedemptionRequest
CoinRedemptionRequest(self, *args, **kwargs)
Define the coin redemption request schema.
coin_redemption
Accessor to the related object on the forward side of a one-to-one relation.
In the example::
class Restaurant(Model):
place = OneToOneField(Place, related_name='restaurant')
Restaurant.place
is a ForwardOneToOneDescriptor
instance.
coin_redemption_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
_method
CoinRedemptionRequest._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)
_method
CoinRedemptionRequest._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)
_method
CoinRedemptionRequest._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)
_method
CoinRedemptionRequest._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)
id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
ip
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
sent_on
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
txaddress
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
txid
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
Tool
Tool(self, *args, **kwargs)
Define the Tool schema.
active
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
CAT_ADVANCED
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'.
CAT_ALPHA
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'.
CAT_BASIC
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'.
CAT_BUILD
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'.
CAT_COMING_SOON
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'.
CAT_COMMUNITY
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'.
CAT_FOR_FUN
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'.
category
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
description
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
GAS_TOOLS
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'.
_method
Tool._method(self, *, field=<django.db.models.fields.CharField: category>)
_method
Tool._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)
_method
Tool._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)
_method
Tool._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)
_method
Tool._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)
id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
img
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
link
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
link_copy
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
new
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
stat_graph
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
TOOL_CATEGORIES
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.
url_name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
votes
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example::
class Pizza(Model):
toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
and Topping.pizzas
are ManyToManyDescriptor
instances.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
ToolVote
ToolVote(self, *args, **kwargs)
Define the vote placed on a tool.
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.
tool_set
Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.
In the example::
class Pizza(Model):
toppings = ManyToManyField(Topping, related_name='pizzas')
Pizza.toppings
and Topping.pizzas
are ManyToManyDescriptor
instances.
Most of the implementation is delegated to a dynamically defined manager
class built by create_forward_many_to_many_manager()
defined below.
value
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
TokenApproval
TokenApproval(self, *args, **kwargs)
A token approval.
approved_address
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
approved_name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
coinbase
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
_method
TokenApproval._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)
_method
TokenApproval._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)
_method
TokenApproval._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)
_method
TokenApproval._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)
id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
network
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.
token_address
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
token_name
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
tx
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
SearchHistory
SearchHistory(self, *args, **kwargs)
Define the structure of a Search History object.
data
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
_method
SearchHistory._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)
_method
SearchHistory._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)
_method
SearchHistory._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)
_method
SearchHistory._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)
id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
ip_address
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
user
Accessor to the related object on the forward side of a one-to-one relation.
In the example::
class Restaurant(Model):
place = OneToOneField(Place, related_name='restaurant')
Restaurant.place
is a ForwardOneToOneDescriptor
instance.
user_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
BlockedUser
BlockedUser(self, *args, **kwargs)
Define the structure of the BlockedUser.
active
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
comments
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
_method
BlockedUser._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=True, **kwargs)
_method
BlockedUser._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)
_method
BlockedUser._method(self, *, field=<django.db.models.fields.DateTimeField: created_on>, is_next=False, **kwargs)
_method
BlockedUser._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)
handle
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.
user
Accessor to the related object on the forward side of a one-to-one relation.
In the example::
class Restaurant(Model):
place = OneToOneField(Place, related_name='restaurant')
Restaurant.place
is a ForwardOneToOneDescriptor
instance.
user_id
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.