{
  "id": "django-generatedfield-table",
  "kind": "table",
  "slug": "django-generatedfield",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/django-generatedfield/",
  "title": "Declare a Django GeneratedField that the database keeps up to date",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "GeneratedField",
      "source": "Django docs",
      "detail": "Field computed from other fields in the model"
    },
    {
      "name": "stored",
      "source": "Django docs",
      "detail": "Computed when written and occupies storage"
    },
    {
      "name": "virtual",
      "source": "Django docs",
      "detail": "Occupies no storage and is computed when read"
    },
    {
      "name": "GENERATED ALWAYS",
      "source": "Django docs",
      "detail": "SQL syntax for the column constraint"
    }
  ],
  "related_slugs": [
    "django-models",
    "django-querysets",
    "sqlite-datatypes-strict"
  ],
  "license": "CC-BY-4.0",
  "source_license": "BSD-3-Clause (Django docs); Public-Domain (SQLite); prose restates cited source lines in own words",
  "as_of": "2026-11-19",
  "status": "deep-draft-20261119",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}