Package telemeta :: Package models :: Module core
[hide private]
[frames] | no frames]

Module core

source code

Classes [hide private]
  Duration
Represent a time duration
  DurationField
Duration Django model field.
  ForeignKey
The constructor arguments of this ForeignKey are normalized with normalize_field(), however the field is marked required by default unless it is allowed to be null.
  WeakForeignKey
A weak foreign key is the same as foreign key but without cascading delete.
  EnhancedQuerySet
QuerySet with added functionalities such as WeakForeignKey handling
  EnhancedManager
Manager which is bound to EnhancedQuerySet
  EnhancedModel
Base model class with added functionality.
  CharField
This is a CharField with a default max_length of 250.
  IntegerField
IntegerField normalized with normalize_field()
  BooleanField
BooleanField normalized with normalize_field()
  TextField
TextField normalized with normalize_field()
  DateTimeField
DateTimeField normalized with normalize_field().
  FileField
FileField normalized with normalize_field()
  FloatField
FloatField normalized with normalize_field()
  DateField
DateField normalized with normalize_field().
  RequiredFieldError
  ModelCore
  MetaCore
  CoreQuerySet
Base class for all query sets
  CoreManager
Base class for all models managers
Functions [hide private]
 
normalize_field(args, default_value=None)
Normalize field constructor arguments, so that the field is marked blank=True and has a default value by default.
source code
 
word_search_q(field, pattern) source code
Function Details [hide private]

normalize_field(args, default_value=None)

source code 

Normalize field constructor arguments, so that the field is marked blank=True and has a default value by default.

This behaviour can be disabled by passing the special argument required=True.

The default value can also be overriden with the default=value argument.