Show Menu
Cheatography

Django Framework Cheat Sheet (DRAFT) by

List

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Common kwargs

null=False
blank=False
choices=Iterable
db_column=name
db_index=False
default=value­_or­_fu­nction
editable=True
error_­mes­sages=dict
help_text=string
primar­y_key=False

Numbers

models.Intege­rField
models.Positi­veI­nte­ger­Field
models.SmallI­nte­ger­Field
models.Positi­veS­mal­lIn­teg­erField
models.BigInt­ege­rField
models.Decima­lField
models.FloatField