berhoel.django.media_ooimport package¶
Load Data into Django model.
Subpackages¶
- berhoel.django.media_ooimport.console package
- berhoel.django.media_ooimport.migrations package
Submodules¶
berhoel.django.media_ooimport._version module¶
berhoel.django.media_ooimport.admin module¶
Django admin for series.
berhoel.django.media_ooimport.apps module¶
-
class
berhoel.django.media_ooimport.apps.
DjangomediaarchiveImportOodataConfig
(app_name, app_module)[source]¶ Bases:
django.apps.config.AppConfig
Methods
create
(entry)Factory that creates an app config from an entry in INSTALLED_APPS.
get_model
(self, model_name[, require_ready])Return the model with the given case-insensitive model_name.
get_models
(self[, include_auto_created, …])Return an iterable of models.
ready
(self)Override this method in subclasses to run code when Django starts.
import_models
-
name
= 'djangoMediaArchive_import_OOData'¶
-
berhoel.django.media_ooimport.models module¶
Django models for series application.
-
class
berhoel.django.media_ooimport.models.
ConvertedSheet
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
Which sheets are already saved?
- Attributes
- pk
Methods
clean
(self)Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields.
clean_fields
(self[, exclude])Clean all fields and raise a ValidationError containing a dict of all validation errors if any occur.
full_clean
(self[, exclude, validate_unique])Call clean_fields(), clean(), and validate_unique() on the model.
get_deferred_fields
(self)Return a set containing names of deferred fields for this instance.
refresh_from_db
(self[, using, fields])Reload field values from the database.
save
(self[, force_insert, force_update, …])Save the current instance.
save_base
(self[, raw, force_insert, …])Handle the parts of saving which should be done only once per save, yet need to be done in raw saves, too.
serializable_value
(self, field_name)Return the value of the field name for this instance.
validate_unique
(self[, exclude])Check unique constraints on the model and raise ValidationError if any failed.
check
date_error_message
delete
from_db
prepare_database_save
unique_error_message
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
_meta
= <Options for ConvertedSheet>¶
-
id
¶ 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>¶
-
saved
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
class
berhoel.django.media_ooimport.models.
NameCinemaMap
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
Map for cinemas
- Attributes
- person
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 aForwardManyToOneDescriptor
instance.- person_id
- pk
Methods
clean
(self)Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields.
clean_fields
(self[, exclude])Clean all fields and raise a ValidationError containing a dict of all validation errors if any occur.
full_clean
(self[, exclude, validate_unique])Call clean_fields(), clean(), and validate_unique() on the model.
get_deferred_fields
(self)Return a set containing names of deferred fields for this instance.
refresh_from_db
(self[, using, fields])Reload field values from the database.
save
(self[, force_insert, force_update, …])Save the current instance.
save_base
(self[, raw, force_insert, …])Handle the parts of saving which should be done only once per save, yet need to be done in raw saves, too.
serializable_value
(self, field_name)Return the value of the field name for this instance.
validate_unique
(self[, exclude])Check unique constraints on the model and raise ValidationError if any failed.
check
date_error_message
delete
from_db
prepare_database_save
unique_error_message
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
_meta
= <Options for NameCinemaMap>¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
name
¶ 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>¶
-
person
¶ 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 aForwardManyToOneDescriptor
instance.
-
person_id
¶ !! processed by numpydoc !!
-
class
berhoel.django.media_ooimport.models.
NameMediaMap
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
Map for non DVD Media
- Attributes
- media
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 aForwardManyToOneDescriptor
instance.- media_id
- pk
Methods
clean
(self)Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields.
clean_fields
(self[, exclude])Clean all fields and raise a ValidationError containing a dict of all validation errors if any occur.
full_clean
(self[, exclude, validate_unique])Call clean_fields(), clean(), and validate_unique() on the model.
get_deferred_fields
(self)Return a set containing names of deferred fields for this instance.
refresh_from_db
(self[, using, fields])Reload field values from the database.
save
(self[, force_insert, force_update, …])Save the current instance.
save_base
(self[, raw, force_insert, …])Handle the parts of saving which should be done only once per save, yet need to be done in raw saves, too.
serializable_value
(self, field_name)Return the value of the field name for this instance.
validate_unique
(self[, exclude])Check unique constraints on the model and raise ValidationError if any failed.
check
date_error_message
delete
from_db
prepare_database_save
unique_error_message
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
_meta
= <Options for NameMediaMap>¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
media
¶ 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 aForwardManyToOneDescriptor
instance.
-
media_id
¶ !! processed by numpydoc !!
-
name
¶ 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>¶
-
class
berhoel.django.media_ooimport.models.
NameRentalMap
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
Map for Rental companies
- Attributes
- person
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 aForwardManyToOneDescriptor
instance.- person_id
- pk
Methods
clean
(self)Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields.
clean_fields
(self[, exclude])Clean all fields and raise a ValidationError containing a dict of all validation errors if any occur.
full_clean
(self[, exclude, validate_unique])Call clean_fields(), clean(), and validate_unique() on the model.
get_deferred_fields
(self)Return a set containing names of deferred fields for this instance.
refresh_from_db
(self[, using, fields])Reload field values from the database.
save
(self[, force_insert, force_update, …])Save the current instance.
save_base
(self[, raw, force_insert, …])Handle the parts of saving which should be done only once per save, yet need to be done in raw saves, too.
serializable_value
(self, field_name)Return the value of the field name for this instance.
validate_unique
(self[, exclude])Check unique constraints on the model and raise ValidationError if any failed.
check
date_error_message
delete
from_db
prepare_database_save
unique_error_message
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
_meta
= <Options for NameRentalMap>¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
name
¶ 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>¶
-
person
¶ 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 aForwardManyToOneDescriptor
instance.
-
person_id
¶ !! processed by numpydoc !!
-
class
berhoel.django.media_ooimport.models.
NameStreamingServiceMap
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
Map for streaming services
- Attributes
- person
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 aForwardManyToOneDescriptor
instance.- person_id
- pk
Methods
clean
(self)Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields.
clean_fields
(self[, exclude])Clean all fields and raise a ValidationError containing a dict of all validation errors if any occur.
full_clean
(self[, exclude, validate_unique])Call clean_fields(), clean(), and validate_unique() on the model.
get_deferred_fields
(self)Return a set containing names of deferred fields for this instance.
refresh_from_db
(self[, using, fields])Reload field values from the database.
save
(self[, force_insert, force_update, …])Save the current instance.
save_base
(self[, raw, force_insert, …])Handle the parts of saving which should be done only once per save, yet need to be done in raw saves, too.
serializable_value
(self, field_name)Return the value of the field name for this instance.
validate_unique
(self[, exclude])Check unique constraints on the model and raise ValidationError if any failed.
check
date_error_message
delete
from_db
prepare_database_save
unique_error_message
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
_meta
= <Options for NameStreamingServiceMap>¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
name
¶ 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>¶
-
person
¶ 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 aForwardManyToOneDescriptor
instance.
-
person_id
¶ !! processed by numpydoc !!
-
class
berhoel.django.media_ooimport.models.
SaveLine
(*args, **kwargs)[source]¶ Bases:
django.db.models.base.Model
Store original line in ‘k&v’ for DVD.
- Attributes
- dvd
Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Restaurant.place
is aForwardOneToOneDescriptor
instance.- dvd_id
- pk
Methods
clean
(self)Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields.
clean_fields
(self[, exclude])Clean all fields and raise a ValidationError containing a dict of all validation errors if any occur.
full_clean
(self[, exclude, validate_unique])Call clean_fields(), clean(), and validate_unique() on the model.
get_deferred_fields
(self)Return a set containing names of deferred fields for this instance.
refresh_from_db
(self[, using, fields])Reload field values from the database.
save
(self[, force_insert, force_update, …])Save the current instance.
save_base
(self[, raw, force_insert, …])Handle the parts of saving which should be done only once per save, yet need to be done in raw saves, too.
serializable_value
(self, field_name)Return the value of the field name for this instance.
validate_unique
(self[, exclude])Check unique constraints on the model and raise ValidationError if any failed.
check
date_error_message
delete
from_db
prepare_database_save
unique_error_message
-
exception
DoesNotExist
¶ Bases:
django.core.exceptions.ObjectDoesNotExist
-
exception
MultipleObjectsReturned
¶ Bases:
django.core.exceptions.MultipleObjectsReturned
-
_meta
= <Options for SaveLine>¶
-
dvd
¶ Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Restaurant.place
is aForwardOneToOneDescriptor
instance.
-
dvd_id
¶ !! processed by numpydoc !!
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
line
¶ 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>¶