external_bounties.models

Define external bounty 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/.

ExternalBounty

ExternalBounty(self, *args, **kwargs)

Define the structure of an ExternalBounty.

action_url

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

active

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.

amount_denomination

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

avatar

Return the github avatar or default to a specific avatar image.

description

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

fiat_price

Return the fiat price.

_method

ExternalBounty._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=True, **kwargs)

_method

ExternalBounty._method(self, *, field=<django.db.models.fields.DateTimeField: modified_on>, is_next=False, **kwargs)

github_avatar_url

Return the local avatar URL.

github_handle

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

github_url

Return the Github repository URL.

id

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

idx_fiat_price

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

last_sync_time

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

payout_str

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

source_project

A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.

tags

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.

url

Return the URL associated with the external bounty.