db.models.TextField

class TextField(**options) [source] A large text field. The default form widget for this field is a Textarea. If you specify a max_length attribute, it will be reflected in the Textarea widget of the auto-generated form field. However it is not enforced at the model or database level. Use a CharField for that. MySQL users If you are using this field with MySQLdb 1.2.1p2 and the utf8_bin collation (which is not the default), there are some issues to be aware of. Refer to the MySQL database n

db.models.Transform

class Transform [source] A Transform is a generic class to implement field transformations. A prominent example is __year that transforms a DateField into a IntegerField. The notation to use a Transform in an lookup expression is <expression>__<transformation> (e.g. date__year). This class follows the Query Expression API, which implies that you can use <expression>__<transform1>__<transform2>. It’s a specialized Func() expression that only accepts one argument.

db.models.SlugField.allow_unicode

SlugField.allow_unicode New in Django 1.9. If True, the field accepts Unicode letters in addition to ASCII letters. Defaults to False.

db.models.StdDev.sample

sample By default, StdDev returns the population standard deviation. However, if sample=True, the return value will be the sample standard deviation. SQLite SQLite doesn’t provide StdDev out of the box. An implementation is available as an extension module for SQLite. Consult the SQlite documentation for instructions on obtaining and installing this extension.

db.models.SmallIntegerField

class SmallIntegerField(**options) [source] Like an IntegerField, but only allows values under a certain (database-dependent) point. Values from -32768 to 32767 are safe in all databases supported by Django.

db.models.StdDev

class StdDev(expression, sample=False, **extra) [source] Returns the standard deviation of the data in the provided expression. Default alias: <field>__stddev Return type: float Has one optional argument: sample By default, StdDev returns the population standard deviation. However, if sample=True, the return value will be the sample standard deviation. SQLite SQLite doesn’t provide StdDev out of the box. An implementation is available as an extension module for SQLite. Consu

db.models.SET_DEFAULT

SET_DEFAULT [source] Set the ForeignKey to its default value; a default for the ForeignKey must be set.

db.models.signals.pre_init

django.db.models.signals.pre_init Whenever you instantiate a Django model, this signal is sent at the beginning of the model’s __init__() method. Arguments sent with this signal:

db.models.SET_NULL

SET_NULL [source] Set the ForeignKey null; this is only possible if null is True.

db.models.SlugField

class SlugField(max_length=50, **options) [source] Slug is a newspaper term. A slug is a short label for something, containing only letters, numbers, underscores or hyphens. They’re generally used in URLs. Like a CharField, you can specify max_length (read the note about database portability and max_length in that section, too). If max_length is not specified, Django will use a default length of 50. Implies setting Field.db_index to True. It is often useful to automatically prepopulate a Slu