noc.core.model.fields

Module Contents

class noc.core.model.fields.CIDRField(*args, **kwargs)

Bases: django.db.models.Field

CIDRField maps to PostgreSQL CIDR

db_type(self, connection)
to_python(self, value)
get_db_prep_value(self, value, connection, prepared=False)
class noc.core.model.fields.INETField

Bases: django.db.models.Field

INETField maps to PostgreSQL INET Field

db_type(self, connection)
get_db_prep_value(self, value, connection, prepared=False)
class noc.core.model.fields.MACField

Bases: django.db.models.Field

MACField maps to the PostgreSQL MACADDR field

db_type(self, connection)
from_db_value(self, value, expression, connection, context)
get_db_prep_value(self, value, connection, prepared=False)
class noc.core.model.fields.BinaryField

Bases: django.db.models.Field

Binary Field maps to PostgreSQL BYTEA

db_type(self, connection)
class noc.core.model.fields.TextArrayField

Bases: django.db.models.Field

Text Array field maps to PostgreSQL TEXT[] type

db_type(self, connection)
from_db_value(self, value, expression, connection, context)
get_default(self)
class noc.core.model.fields.InetArrayField

Bases: django.db.models.Field

INETArrayField maps to PostgreSQL INET[] type

db_type(self, connection)
from_db_value(self, value, expression, connection, context)
get_db_prep_value(self, value, connection, prepared=False)
class noc.core.model.fields.PickledField

Bases: django.db.models.Field

Pickled object

db_type(self, connection)
from_db_value(self, value, expression, connection, context)
get_db_prep_value(self, value, connection, prepared=False)
class noc.core.model.fields.AutoCompleteTagsField

Bases: django.db.models.Field

Autocomplete tags fields

db_type(self, connection)
class noc.core.model.fields.TagsField

Bases: django.db.models.Field

db_type(self, connection)
from_db_value(self, value, expression, connection, context)
get_db_prep_value(self, value, connection, prepared=False)
class noc.core.model.fields.TagsContainsLookup

Bases: django.db.models.Lookup

lookup_name = contains
as_sql(self, compiler, connection)
class noc.core.model.fields.DocumentReferenceDescriptor(field)

Bases: object

is_cached(self, instance)
__get__(self, instance, instance_type=None)
_reset_cache(self, instance)
__set__(self, instance, value)
class noc.core.model.fields.DocumentReferenceField(document, *args, **kwargs)

Bases: django.db.models.Field

contribute_to_class(self, cls, name, *args, **kwargs)
db_type(self, connection)
get_prep_value(self, value)
class noc.core.model.fields.CachedForeignKeyDescriptor

Bases: django.db.models.fields.related_descriptors.ForwardManyToOneDescriptor

get_object(self, instance)
class noc.core.model.fields.CachedForeignKey

Bases: django.db.models.ForeignKey

class noc.core.model.fields.ObjectIDArrayField

Bases: django.db.models.Field

ObjectIDArrayField maps to PostgreSQL CHAR[] type

db_type(self, connection)
from_db_value(self, value, expression, connection, context)
get_db_prep_value(self, value, connection, prepared=False)