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.Sum

class Sum(expression, output_field=None, **extra) [source] Computes the sum of all values of the given expression. Default alias: <field>__sum Return type: same as input field, or output_field if supplied

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.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.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.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.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

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.SET_DEFAULT

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