Models

class app.enquiries.models.Enquirer(*args, **kwargs)

Bases: Model

Model for Enquirer details

class app.enquiries.models.Enquiry(*args, **kwargs)

Bases: TimeStampedModel

Model for investment Enquiry

Includes an optional date_received field to allow a differentiation between when the enquiry is uploaded to the system and when it was received by our teams.

anonymised_project_description

Anonymised project description

client_relationship_manager

Client relationship manager

company_hq_address

Company headquarter address

company_name

Company name

country

The IST sector, one of ref_data.Country.choices

datahub_project_status

DataHub project status

date_added_to_datahub

Date added to DataHub

date_received

Date the enquiry was received

enquirer

The Enquirer

enquiry_stage

Stage of the enquiry, one of ref_data.EnquiryStage.choices

enquiry_text

Enquiry text

estimated_land_date

Estimated land date

first_hpo_selection

First HPO selection, one of ref_data.HpoSelection.choices

first_response_channel

The IST sector, one of ref_data.FirstResponseChannel.choices

google_campaign

Id of the related Google campaign

how_they_heard_dit

How did the enquirer hear about DBT

investment_readiness

Stage of the enquiry, one of ref_data.InvestmentReadiness.choices

investment_type

Third HPO selection, one of ref_data.InvestmentType.choices

investor_involvement_level

Third HPO selection, one of ref_data.InvestorInvolvement.choices

ist_sector

The IST sector, one of ref_data.ISTSector.choices

marketing_channel

Stage of the enquiry, one of ref_data.MarketingChannel.choices

new_existing_investor

Third HPO selection, one of ref_data.NewExistingInvestor.choices

notes

Extra notes

organisation_type

Third HPO selection, one of ref_data.OrganisationType.choices

owner

The Owner of the enquiry

primary_sector

Stage of the enquiry, one of ref_data.PrimarySector.choices

project_code

Project code

project_description

Project description

project_name

Project name

project_success_date

Project success date

quality

Stage of the enquiry, one of ref_data.Quality.choices

region

The IST sector, one of ref_data.Region.choices

second_hpo_selection

Second HPO selection, one of ref_data.HpoSelection.choices

specific_investment_programme

Third HPO selection, one of ref_data.InvestmentProgramme.choices

third_hpo_selection

Third HPO selection, one of ref_data.HpoSelection.choices

website

Website URL

class app.enquiries.models.FailedEnquiry(*args, **kwargs)

Bases: Model

Model to track failed enquiries when processing the data from Activity Stream

class app.enquiries.models.Owner(*args, **kwargs)

Bases: AbstractUser

Customer user model used by the app. Each Enquiry has an Owner.

class app.enquiries.models.ReceivedEnquiryCursor(*args, **kwargs)

Bases: Model

New enquiries data is pulled from Activity Stream at regular intervals. This model tracks the timestamp and object id of the last item received. They are used to fetch the next set of results.