swh.web.save_bulk.models module#

class swh.web.save_bulk.models.SaveBulkRequest(id, request_date, user_id)[source]#

Bases: Model

id#

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

request_date#

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

user_id#

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

objects: Manager = <django.db.models.manager.Manager object>#
exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned

get_next_by_request_date(*, field=<django.db.models.fields.DateTimeField: request_date>, is_next=True, **kwargs)#
get_previous_by_request_date(*, field=<django.db.models.fields.DateTimeField: request_date>, is_next=False, **kwargs)#
savebulkorigin_set#

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

class swh.web.save_bulk.models.SaveBulkOrigin(id, origin_url, visit_type)[source]#

Bases: Model

id#

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

origin_url#

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

visit_type#

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

requests#

Accessor to the related objects manager on the forward and reverse sides of a many-to-many relation.

In the example:

class Pizza(Model):
    toppings = ManyToManyField(Topping, related_name='pizzas')

Pizza.toppings and Topping.pizzas are ManyToManyDescriptor instances.

Most of the implementation is delegated to a dynamically defined manager class built by create_forward_many_to_many_manager() defined below.

objects: Manager = <django.db.models.manager.Manager object>#
exception DoesNotExist#

Bases: ObjectDoesNotExist

exception MultipleObjectsReturned#

Bases: MultipleObjectsReturned