Portfolios

Portfolios.ProjectPortfolio(**kwargs)

The ProjectPortfolio object holds a collection of Projects (Economic activities with defined environmental impact)

Includes reference to the user creating the data set (portfolio manager)

Portfolios are named to facilitate recognition

Actual Portfolio data are optionally aggregated and stored in the PortfolioData model Timed Portfolio data are tagged using the PortfolioSnapshot model

TODO “Notes” is a user oriented field to allow storing human readable context about the portfolio

Type is an integer field representing the type of the portfolio 0 -> Performing Book / Current Book 1 -> Historical Book

Portfolios.PortfolioSnapshot(**kwargs)

The Portfolio_Snapshot object helps group time-sensitive Portfolio data for a given cutoff date. The Snapshot may be named to facilitate recognition (E.g. Q1-2020).

Note

The actual Snapshot data are stored in the various Models (with foreign keys to a portfolio snapshot)

Portfolios.PortfolioTable(**kwargs)

The Portfolio Table object aggregates core (credit) portfolio data in a “master table” format to facilitate various quantitative portfolio analysis procedures

Portfolios.LimitStructure(**kwargs)

The LimitStructure object holds target (budget) oriented limit data

Includes reference to user creating the budget scenario

Each LimitStructure is named to facilitate recognition

class portfolio.Portfolios.LimitStructure(*args, **kwargs)

The LimitStructure object holds target (budget) oriented limit data

Includes reference to user creating the budget scenario

Each LimitStructure is named to facilitate recognition

exception DoesNotExist
exception MultipleObjectsReturned
creation_date

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

get_absolute_url()
get_next_by_creation_date(*, field=<django.db.models.fields.DateTimeField: creation_date>, is_next=True, **kwargs)
get_next_by_last_change_date(*, field=<django.db.models.fields.DateTimeField: last_change_date>, is_next=True, **kwargs)
get_previous_by_creation_date(*, field=<django.db.models.fields.DateTimeField: creation_date>, is_next=False, **kwargs)
get_previous_by_last_change_date(*, field=<django.db.models.fields.DateTimeField: last_change_date>, 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.

last_change_date

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

limitflow_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.

max_ead

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

max_tenor

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

min_lgd

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

min_rating

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.

notes

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

objects = <django.db.models.manager.Manager object>
portfolio

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.

portfolio_id
class portfolio.Portfolios.PortfolioSnapshot(*args, **kwargs)

The Portfolio_Snapshot object helps group time-sensitive Portfolio data for a given cutoff date. The Snapshot may be named to facilitate recognition (E.g. Q1-2020).

Note

The actual Snapshot data are stored in the various Models (with foreign keys to a portfolio snapshot)

exception DoesNotExist
exception MultipleObjectsReturned
borrower_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.

creation_date

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

cutoff_date

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

get_absolute_url()
get_next_by_creation_date(*, field=<django.db.models.fields.DateTimeField: creation_date>, is_next=True, **kwargs)
get_next_by_last_change_date(*, field=<django.db.models.fields.DateTimeField: last_change_date>, is_next=True, **kwargs)
get_previous_by_creation_date(*, field=<django.db.models.fields.DateTimeField: creation_date>, is_next=False, **kwargs)
get_previous_by_last_change_date(*, field=<django.db.models.fields.DateTimeField: last_change_date>, 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.

last_change_date

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.

objects = <django.db.models.manager.Manager object>
project_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.

class portfolio.Portfolios.PortfolioTable(*args, **kwargs)

The Portfolio Table object aggregates core (credit) portfolio data in a “master table” format to facilitate various quantitative portfolio analysis procedures

Country

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

exception DoesNotExist
EAD

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

LGD

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

exception MultipleObjectsReturned
Obligor_ID

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

Sector

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

Tenor

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

creation_date

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

get_Country_display(*, field=<django.db.models.fields.IntegerField: Country>)
get_Sector_display(*, field=<django.db.models.fields.IntegerField: Sector>)
get_absolute_url()
get_next_by_creation_date(*, field=<django.db.models.fields.DateTimeField: creation_date>, is_next=True, **kwargs)
get_next_by_last_change_date(*, field=<django.db.models.fields.DateTimeField: last_change_date>, is_next=True, **kwargs)
get_previous_by_creation_date(*, field=<django.db.models.fields.DateTimeField: creation_date>, is_next=False, **kwargs)
get_previous_by_last_change_date(*, field=<django.db.models.fields.DateTimeField: last_change_date>, 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.

last_change_date

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

objects = <django.db.models.manager.Manager object>
portfolio_id

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.

portfolio_id_id
class portfolio.Portfolios.ProjectPortfolio(*args, **kwargs)

The ProjectPortfolio object holds a collection of Projects (Economic activities with defined environmental impact)

Includes reference to the user creating the data set (portfolio manager)

Portfolios are named to facilitate recognition

Actual Portfolio data are optionally aggregated and stored in the PortfolioData model Timed Portfolio data are tagged using the PortfolioSnapshot model

TODO “Notes” is a user oriented field to allow storing human readable context about the portfolio

Type is an integer field representing the type of the portfolio 0 -> Performing Book / Current Book 1 -> Historical Book

exception DoesNotExist
exception MultipleObjectsReturned
PORTFOLIO_TYPES = [(0, 'Performing'), (1, 'Historical')]
borrower_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.

creation_date

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

get_absolute_url()
get_next_by_creation_date(*, field=<django.db.models.fields.DateTimeField: creation_date>, is_next=True, **kwargs)
get_next_by_last_change_date(*, field=<django.db.models.fields.DateTimeField: last_change_date>, is_next=True, **kwargs)
get_portfolio_type_display(*, field=<django.db.models.fields.IntegerField: portfolio_type>)
get_previous_by_creation_date(*, field=<django.db.models.fields.DateTimeField: creation_date>, is_next=False, **kwargs)
get_previous_by_last_change_date(*, field=<django.db.models.fields.DateTimeField: last_change_date>, 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.

last_change_date

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

limitflow_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.

limitstructure_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.

manager

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.

manager_id
name

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

notes

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

objects = <django.db.models.manager.Manager object>
portfolio_type

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

portfoliotable_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.

project_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.