app.models.document

Description

Classes

Document(*args, **kwargs)

class app.models.document.Document(*args, **kwargs)
DoesNotExist

alias of app.models.document.DocumentDoesNotExist

_coerce = True
_meta = <peewee.Metadata object>
classmethod _normalize_data(data, kwargs)
property _pk
_pk_expr()
_populate_unsaved_relations(field_dict)
_prune_fields(field_dict, only)
_schema = <peewee.SchemaManager object>
classmethod add_index(*fields, **kwargs)
classmethod alias(alias=None)
classmethod bind(database, bind_refs=True, bind_backrefs=True, _exclude=None)
classmethod bind_ctx(database, bind_refs=True, bind_backrefs=True)
classmethod bulk_create(model_list, batch_size=None)
classmethod bulk_update(model_list, fields, batch_size=None)
clone()
coerce(_coerce=True)
static copy(method)
classmethod create(**query)
classmethod create_table(safe=True, **options)
created_at = <TimestampField: Document.created_at>
created_by = <ForeignKeyField: Document.created_by>
created_by_id = <ForeignKeyField: Document.created_by>
classmethod delete()
classmethod delete_by_id(pk)
delete_instance(recursive=False, delete_nullable=False)
deleted_at = <TimestampField: Document.deleted_at>
dependencies(search_nullable=False)
directory_path = <CharField: Document.directory_path>
property dirty_fields
classmethod drop_table(safe=True, drop_sequences=True, **options)
classmethod filter(*dq_nodes, **filters)
classmethod get(*query, **filters)
classmethod get_by_id(pk)
classmethod get_fields(exclude: Optional[list] = None, include: Optional[list] = None, sort_order: Optional[list] = None) set
get_filepath()
get_id()
classmethod get_or_create(**kwargs)
classmethod get_or_none(*query, **filters)
id = <AutoField: Document.id>
classmethod index(*fields, **kwargs)
classmethod insert(_Model__data=None, **insert)
classmethod insert_from(query, fields)
classmethod insert_many(rows, fields=None)
internal_filename = <CharField: Document.internal_filename>
is_alias()
is_dirty()
mime_type = <CharField: Document.mime_type>
name = <CharField: Document.name>
classmethod noop()
static raw(query: str)
reload()
classmethod replace(_Model__data=None, **insert)
classmethod replace_many(rows, fields=None)
abstract save(*args: list, **kwargs: dict) int
classmethod select(*fields)
classmethod set_by_id(key, value)
size = <IntegerField: Document.size>
classmethod table_exists()
classmethod truncate_table(**options)
unwrap()
classmethod update(_Model__data=None, **update)
updated_at = <TimestampField: Document.updated_at>
property url
classmethod validate_model()