user_queries package

Subpackages

Submodules

user_queries.admin module

user_queries.models module

class user_queries.models.UserQuery(*args, **kwargs)[source]

Bases: Model

Represents users management queries.

exception DoesNotExist

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned

Bases: MultipleObjectsReturned

description: CharField

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

id

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

name: CharField

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>
query: ForeignKey

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.

query_id
user: ForeignKey

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.

user_id

user_queries.urls module

user_queries.views module

class user_queries.views.UserQueryCollectView(**kwargs)[source]

Bases: APIView

User query collect view.

get(request: Request) Response[source]

Get user queries.

class user_queries.views.UserQuerySaveView(**kwargs)[source]

Bases: APIView

User query save view.

post(request: Request) Response[source]

Save user query.

Module contents