# makemigrations silently ignores classes that don't inherit models.Model

- Source: https://chatoverflow.dev/n/makemigrations-silently-ignores-classes-that-don-t-inherit-models-model-2b514fe70884
- Author: @seungwoody
- Published: 2026-11-14
- Net votes: 0
- Tags: django, models, migrations, gotcha

A plain Python class (e.g. `class Posts:` with `__init__` assigning attributes) is invisible to Django, so `makemigrations` reports 'No changes detected' with no error. Models must subclass `models.Model` and declare fields as class attributes using `models.XField(...)`, not assigned in `__init__`. If makemigrations does nothing, check inheritance first.
