apps.zoon.models.py

class apps.zoon.models.AllCovenantedDocsManualCovenantManager(*args, **kwargs)

This model manager is mainly used for exports of all covenanted documents. It returns a list of all covenant/parcel combinations, so should not be used for covenant counts. It is reduced to a per-docnumber list in the export stage in apps/parcel/utils/export_utils.py The main model manager used for covenant exports is in apps/parcel/models.py. Unlike the main exporter, de-duping is not done here to eliminate multiple occurences of the same document.

get_queryset()

Return a new QuerySet object. Subclasses can override this method to customize the behavior of the Manager.

class apps.zoon.models.AllCovenantedDocsZooniverseManager(*args, **kwargs)

This model manager is mainly used for exports of all covenanted documents. It returns a list of all covenant/parcel combinations, so should not be used for covenant counts. It is reduced to a per-docnumber list in the export stage in apps/parcel/utils/export_utils.py The main model manager used for covenant exports is in apps/parcel/models.py. Unlike the main exporter, de-duping is not done here to eliminate multiple occurences of the same document.

get_queryset()

Return a new QuerySet object. Subclasses can override this method to customize the behavior of the Manager.

class apps.zoon.models.ExtraParcelCandidate(*args, **kwargs)

For use when property spans more than one block or addition, NOT for multiple lots in same addition/block for the moment

Parameters:

Relationship fields:

Parameters:
exception DoesNotExist
exception MultipleObjectsReturned
save(*args, **kwargs)

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

class apps.zoon.models.ManualCorrection(*args, **kwargs)

This is set up as a separate model to preserve any manual work that is done in the event a re-import of zooniverse data is needed

Parameters:

Relationship fields:

Parameters:
exception DoesNotExist
exception MultipleObjectsReturned
save(*args, **kwargs)

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

class apps.zoon.models.ManualCovenant(id, workflow, bool_confirmed, covenant_text, addition, lot, block, map_book, map_book_page, seller, buyer, deed_date, doc_num, city, cov_type, comments, join_candidates, bool_parcel_match, date_added, date_updated, parcel_addresses, parcel_city)
Parameters:

Relationship fields:

Parameters:

Reverse relationships:

Parameters:
exception DoesNotExist
exception MultipleObjectsReturned
check_parcel_match(parcel_lookup=None)

Triggered by post_save signal

save(*args, **kwargs)

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

A way to link to a parcel not based on join strings – a direct link to a manually entered modern Parcel PIN that matches a Parcel object. Note that this one is for ManualCovenant records, while the other one is for attaching to ZooniverseSubject objects

Parameters:

Relationship fields:

Parameters:
exception DoesNotExist
exception MultipleObjectsReturned
save(*args, **kwargs)

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

A way to link to a parcel not based on join strings – a direct link to a manually entered modern Parcel PIN that matches a Parcel object

Parameters:

Relationship fields:

Parameters:
exception DoesNotExist
exception MultipleObjectsReturned
save(*args, **kwargs)

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

class apps.zoon.models.ManualSupportingDocument(*args, **kwargs)

An uploaded document that provides evidence of a racial covenant, which is attached to a ManualCovenant object.

Parameters:

Relationship fields:

Parameters:
exception DoesNotExist
exception MultipleObjectsReturned
class apps.zoon.models.ReducedResponse_Question(*args, **kwargs)

Used for both question and dropdown types

Parameters:
exception DoesNotExist
exception MultipleObjectsReturned
class apps.zoon.models.ReducedResponse_Text(id, zoon_subject_id, zoon_workflow_id, task_id, aligned_text, total_votes, consensus_text, consensus_score, user_ids)
Parameters:
exception DoesNotExist
exception MultipleObjectsReturned
class apps.zoon.models.UnmappedZooniverseManager(*args, **kwargs)

This model manager is mainly used for exports OF NON-MAPPED COVENANTS ONLY. The main model manager used for covenant exports is in apps/parcel/models.py. Unlike the main exporter, de-duping is not done here to eliminate multiple occurences of the same document, and is not currently possible for unmapped covenants.

get_queryset()

Return a new QuerySet object. Subclasses can override this method to customize the behavior of the Manager.

class apps.zoon.models.ValidationZooniverseManager(*args, **kwargs)

This model manager is used to run statistics on retired subjects and for other analysis purposes

get_queryset()

Return a new QuerySet object. Subclasses can override this method to customize the behavior of the Manager.

class apps.zoon.models.ZooniverseResponseProcessed(*args, **kwargs)

Information about an individual transcription that will show up under a ZooniverseSubject during manual review. A more fully processed version of ZooniverseResponseRaw.

Parameters:

Relationship fields:

Parameters:
exception DoesNotExist
exception MultipleObjectsReturned
class apps.zoon.models.ZooniverseResponseRaw(*args, **kwargs)

Information imported after Zooniverse transcription in its natural state after Zooniverse’s panoptes-aggregation scripts. Most useful data is still contained inside annotations and subject_data fields, which will be further processed to produce a ZooniverseResponseProcessed.

Parameters:

Relationship fields:

Parameters:

subject (ForeignKey to ZooniverseSubject) – Subject (related name: zooniverseresponseraw)

Reverse relationships:

Parameters:

zooniverseresponseprocessed (Reverse ForeignKey from ZooniverseResponseProcessed) – All zooniverse response processeds of this zooniverse response raw (related name of response_raw)

exception DoesNotExist
exception MultipleObjectsReturned
class apps.zoon.models.ZooniverseSubject(*args, **kwargs)

This is the main model representing an individual suspected covenant coming back from Zooniverse transcription. Each subject should have five individual transcription responses, which will be aggregated to be displayed with each ZooniverseSubject. Possible future task: Assign an id to correspond to a deed image pre-Zooniverse

Parameters:

Relationship fields:

Parameters:

Reverse relationships:

Parameters:
exception DoesNotExist
exception MultipleObjectsReturned
save(*args, **kwargs)

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

class apps.zoon.models.ZooniverseUser(*args, **kwargs)

Temp: duplicated from apps.deed.models. May or may not be needed later, but not actually doing anything on this app currently.

Parameters:
exception DoesNotExist
exception MultipleObjectsReturned
class apps.zoon.models.ZooniverseWorkflow(*args, **kwargs)

The main shell that keeps each project separate from others. Generally, each county will require a separate ZooniverseWorkflow object.

Parameters:

Reverse relationships:

Parameters:
  • deedpage (Reverse ForeignKey from DeedPage) – All deed pages of this zooniverse workflow (related name of workflow)

  • searchhitreport (Reverse ForeignKey from SearchHitReport) – All search hit reports of this zooniverse workflow (related name of workflow)

  • parcel (Reverse ForeignKey from Parcel) – All parcels of this zooniverse workflow (related name of workflow)

  • parceljoincandidate (Reverse ForeignKey from ParcelJoinCandidate) – All parcel join candidates of this zooniverse workflow (related name of workflow)

  • manualparcelcandidate (Reverse ForeignKey from ManualParcelCandidate) – All manual parcel candidates of this zooniverse workflow (related name of workflow)

  • joinreport (Reverse ForeignKey from JoinReport) – All join reports of this zooniverse workflow (related name of workflow)

  • shpexport (Reverse ForeignKey from ShpExport) – All shp exports of this zooniverse workflow (related name of workflow)

  • geojsonexport (Reverse ForeignKey from GeoJSONExport) – All geo json exports of this zooniverse workflow (related name of workflow)

  • pmtilesexport (Reverse ForeignKey from PMTilesExport) – All pm tiles exports of this zooniverse workflow (related name of workflow)

  • csvexport (Reverse ForeignKey from CSVExport) – All csv exports of this zooniverse workflow (related name of workflow)

  • unmappedcsvexport (Reverse ForeignKey from UnmappedCSVExport) – All unmapped csv exports of this zooniverse workflow (related name of workflow)

  • validationcsvexport (Reverse ForeignKey from ValidationCSVExport) – All validation csv exports of this zooniverse workflow (related name of workflow)

  • allcovenanteddocscsvexport (Reverse ForeignKey from AllCovenantedDocsCSVExport) – All all covenanted docs csv exports of this zooniverse workflow (related name of workflow)

  • dischargecsvexport (Reverse ForeignKey from DischargeCSVExport) – All discharge csv exports of this zooniverse workflow (related name of workflow)

  • covenantedparcel (Reverse ForeignKey from CovenantedParcel) – All covenanted parcels of this zooniverse workflow (related name of workflow)

  • plat (Reverse ForeignKey from Plat) – All plats of this zooniverse workflow (related name of workflow)

  • platalternatename (Reverse ForeignKey from PlatAlternateName) – All plat alternate names of this zooniverse workflow (related name of workflow)

  • subdivision (Reverse ForeignKey from Subdivision) – All subdivisions of this zooniverse workflow (related name of workflow)

  • subdivisionalternatename (Reverse ForeignKey from SubdivisionAlternateName) – All subdivision alternate names of this zooniverse workflow (related name of workflow)

  • zooniversesubject (Reverse ForeignKey from ZooniverseSubject) – All zooniverse subjects of this zooniverse workflow (related name of workflow)

  • zooniverseresponseprocessed (Reverse ForeignKey from ZooniverseResponseProcessed) – All zooniverse response processeds of this zooniverse workflow (related name of workflow)

  • manualcorrection (Reverse ForeignKey from ManualCorrection) – All manual corrections of this zooniverse workflow (related name of workflow)

  • extraparcelcandidate (Reverse ForeignKey from ExtraParcelCandidate) – All extra parcel candidates of this zooniverse workflow (related name of workflow)

  • manualparcelpinlink (Reverse ForeignKey from ManualParcelPINLink) – All manual parcel pin links of this zooniverse workflow (related name of workflow)

  • manualcovenant (Reverse ForeignKey from ManualCovenant) – All manual covenants of this zooniverse workflow (related name of workflow)

  • manualcovenantparcelpinlink (Reverse ForeignKey from ManualCovenantParcelPINLink) – All manual covenant parcel pin links of this zooniverse workflow (related name of workflow)

  • manualsupportingdocument (Reverse ForeignKey from ManualSupportingDocument) – All manual supporting documents of this zooniverse workflow (related name of workflow)

exception DoesNotExist
exception MultipleObjectsReturned
save(*args, **kwargs)

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.