ads.Affiliation¶
- class ads.Affiliation(*args, **kwargs)[source]¶
An author affiliation recognised by ADS.
- __init__(*args, **kwargs)¶
Methods
__init__
(*args, **kwargs)add_index
(*fields, **kwargs)alias
([alias])bind
(database[, bind_refs, bind_backrefs, ...])bind_ctx
(database[, bind_refs, bind_backrefs])bulk_create
(model_list[, batch_size])bulk_update
(model_list, fields[, batch_size])clone
()coerce
([_coerce])copy
(method)create
(**query)create_table
([safe])delete
()delete_by_id
(pk)delete_instance
([recursive, delete_nullable])dependencies
([search_nullable])drop_table
([safe, drop_sequences])filter
(*dq_nodes, **filters)get
(*query, **filters)get_by_id
(pk)get_id
()get_or_create
(**kwargs)get_or_none
(*query, **filters)index
(*fields, **kwargs)insert
([_Model__data])insert_from
(query, fields)insert_many
(rows[, fields])is_alias
()is_dirty
()noop
()raw
(sql, *params)replace
([_Model__data])replace_many
(rows[, fields])save
([force_insert, only])select
(*fields)set_by_id
(key, value)table_exists
()truncate_table
(**options)unwrap
()update
([_Model__data])validate_model
()Attributes
The abbreviated affiliation name.
The full affiliation name.
children
The name of the country that the affiliation is located in.
dirty_fields
document_set
Return affiliations that share any parent that is shared by this record.
The unique (child) identifier for the affiliation.
A foreign key field to any parent identifiers for this affiliation.
parent_id
Return all possible parents of this affiliation.
Return affiliations that share the same parent as this record.
- id = <TextField: Affiliation.id>¶
The unique (child) identifier for the affiliation.
- parent = <ForeignKeyField: Affiliation.parent>¶
A foreign key field to any parent identifiers for this affiliation.
- abbreviation = <TextField: Affiliation.abbreviation>¶
The abbreviated affiliation name.
- canonical_name = <TextField: Affiliation.canonical_name>¶
The full affiliation name.
- country = <TextField: Affiliation.country>¶
The name of the country that the affiliation is located in.
- property parents¶
Return all possible parents of this affiliation.
- property siblings¶
Return affiliations that share the same parent as this record.
- property extended_siblings¶
Return affiliations that share any parent that is shared by this record.
- DoesNotExist¶
alias of
ads.models.affiliation.AffiliationDoesNotExist