lawes
latest
  • Getting Started
  • Models
    • Fields
    • Field options
    • Field types
    • Meta options
    • QuerySet API reference
    • Ensure Index
    • QuerySet API
    • Filter
    • Model define reference
lawes
  • Docs »
  • Models
  • Edit on GitHub

Models¶

A model is the single, definitive source of information about your data. It contains the essential fields and behaviors of the data you’re storing. Generally, each model maps to a single database table.

  • Fields
  • Field options
    • default
    • db_index
    • unique
  • Field types
    • CharField
    • IntegerField
    • FloatField
    • DateTimeField
    • BooleanField
    • ArrayField
    • AutoField
    • HStoreField
    • Automatic primary key fields
  • Meta options
    • Model Meta options
    • db_table
  • QuerySet API reference
    • objects
    • Iteration
    • Slicing
  • Ensure Index
    • init_index()
  • QuerySet API
    • order_by()
    • get()
    • get_or_create()
    • delete()
    • count()
  • Filter
    • =
    • gt, gte, lt, lte, ne
    • text__search
    • Q
  • Model define reference
    • to_dict()
    • to_dict_format()
    • to_json()
Next Previous

© Copyright 2017, lawes. Revision c773d936.

Built with Sphinx using a theme provided by Read the Docs.