Skip to content

About

An extensible Django admin platform with analytics, permissions, and multi-tenancy.

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

43 stars

Watchers

1 watching

Forks

django-vantage

A smart, beautiful admin panel for Django.
Zero config to start. One line to override anything.

PyPI Downloads Python Django CI Licence: MIT

Documentation · Getting started · Changelog · FAQ

The Orders list in django-vantage: stat cards with trends, a revenue chart, a status breakdown, filters and a data grid

Beta (0.3.0b1). Feature-complete for its scope and heavily tested — more than 5,000 tests. The API is stable apart from items marked provisional, and anything that changes goes through a deprecation cycle. See the FAQ for an honest account of what is and is not done. Use it on an internal tool, and pin the exact version if you depend on it.

Why

Django's built-in admin is remarkable for what it is, and it hasn't fundamentally changed in twenty years. django-vantage keeps what made it great — configuration in ordinary Python, next to your models — and rebuilds everything else: the rendering, the data grid, the relationship handling, and the look.

Two rules govern the whole package:

  1. Smart. Install it, and every model in your project already has a good admin — columns, filters, search, widgets, and query optimisation inferred automatically.
  2. Easy. Every inferred default is overridable in one line. If it takes more, the API is wrong.

Install

pip install --pre django-vantage

--pre is needed while Vantage is in beta, because pip skips pre-releases unless asked.

# settings.py
INSTALLED_APPS = ["vantage", ...]

# urls.py
from django.urls import path
from vantage import site

urlpatterns = [path("admin/", site.urls)]

That is the entire setup. Every model is now administrable, with a dashboard, a searchable data grid, create/edit/delete, a command palette, light and dark themes, and a schema map.

Customise a model

Create panel.py next to your models.py:

from vantage import ModelPanel, register
from blog.models import Post

@register(Post)
class PostPanel(ModelPanel):
    list_display = ["title", "author", "status", "published_at"]

Overriding list_display overrides only the columns. Filters, search fields and widgets stay inferred. Partial configuration never opts you out of the intelligence.

Not sure what it inferred? Ask it to write it down:

python manage.py vantage_scaffold blog

That prints a real panel.py containing exactly what Vantage decided, which you can then own and edit. Delete an attribute and it goes back to being inferred.

Statistics and charts on any list page

Declared in Python, computed against the currently filtered queryset, no JavaScript:

from vantage import Chart, ModelPanel, Stat, register
from django.db.models import Avg, Count, Q, Sum

@register(Order)
class OrderPanel(ModelPanel):
    list_filter = ["status", "created_at"]

    list_stats = [
        Stat("Revenue",   Sum("total"), format="currency", trend="created_at"),
        Stat("Orders",    Count("id")),
        Stat("Avg order", Avg("total"), format="currency"),
        Stat("Refunded",  Count("id", filter=Q(status="refunded")), tone="destructive"),
    ]
    list_charts = [
        Chart.timeseries("Revenue over time", date="created_at", value=Sum("total")),
        Chart.breakdown("By status", group_by="status", value=Count("id"), kind="donut"),
    ]

Change a filter and every number follows. Filter to the last 90 days and Revenue compares itself with the 90 days before. All four stats fold into one shared aggregate() call, plus one more for the trend window — two queries total, however many non-trending stats you add. The charts render as inline SVG that follows your brand colour and the current theme.

There is also a per-column summary bar at the foot of every table, which needs no configuration at all — a money column is summed, a rating column is averaged, and an identifier is left alone.

Dashboard with stat cards, a revenue chart and the latest orders and reviews

Dashboard — widgets declared in Python or arranged from the UI

The command palette searching for orders

Command palette — ⌘ K to go anywhere

An inferred edit form, grouped into sections

Forms — inferred widgets and sections, or your own layout

The schema map showing models and their relations

Schema map — derived from the registry, never out of date

Board, calendar, gallery and map views

Any list can also be shown as a Kanban board, a month calendar, a gallery or a map, picked from a switcher in the toolbar. Each view is inferred from the model — a status field, a date, an image, a pair of coordinates — and honours the same search, filters and permissions as the table. On the board and the calendar, Group by and Dates from let anyone pick the field from the page.

@register(Order)
class OrderPanel(ModelPanel):
    list_views = ["table", "kanban", "calendar"]   # first one is the default
    kanban_field = "status"                        # optional: inferred when left out

Cards move by drag and drop or a keyboard-friendly "Move to…" menu, through the same validation, locking and audit log as any edit. Docs →

Customers as a Kanban board grouped by tier, with a Group by picker

Board — group by any status-like field, drag cards between columns

Orders placed on a month calendar

Calendar — records on the days they happen, in your time zone

Products shown as a gallery of image cards

Gallery — for any model with an image

Customers plotted on a map

Map — a dependency-free plot of latitude and longitude, no external requests

Undo, sensitive fields, roles and data quality

Undo. Deletes, bulk edits and inline edits show a toast with an Undo button for a few seconds (⌘/Ctrl Z works too). Nothing is restored over somebody else's newer change. Docs →

Secrets stay secret. Fields named like password, api_token, iban or card_number are masked everywhere — lists, exports, search, the API, the audit log — with zero configuration. A permitted user can reveal one value at a time, and every reveal is logged. Docs →

sensitive_fields = ["api_token", "notes"]   # optional: replaces the inferred list

Roles. Manage Django groups as roles in a permission matrix: tick view / add / change / delete per model, review the diff, save once. Nobody can grant a permission they don't hold themselves. Docs →

Data quality. One read-only page audits every model for empty fields, duplicate candidates, broken references and odd dates — counts and links, never the values. manage.py vantage_data_quality --fail-on warn runs the same audit in CI. Docs →

A toast reading Deleted 1 review with an Undo button

Undo — a deleted record comes back with its original id

A customer's API token shown as dots with a Reveal button

Sensitive fields — masked by default, revealed on purpose

The permission matrix for the Catalogue editors role

Roles — one matrix per role, saved after a review step

The data quality overview scoring each model

Data quality — a score and the worst issue per model

Bulk actions

Ordinary methods with a decorator:

from vantage import ModelPanel, action, register

@register(Review)
class ReviewPanel(ModelPanel):
    @action("Publish", icon="check")
    def publish(self, request, queryset):
        return f"Published {queryset.update(is_published=True)} reviews."

    @action("Delete", destructive=True, permission="delete", max_rows=500,
            confirm="Permanently delete {count} reviews?")
    def delete_selected(self, request, queryset):
        deleted, _ = queryset.delete()
        return f"Deleted {deleted} records."

"Select all matching" travels as a predicate plus an exclusion set, never as a list of ids, so selecting forty thousand rows costs the same as selecting three. The scope actually resolved is always reported back — a bulk action must never quietly apply to less than you asked for.

Lay out a form

from vantage import Row, Section, Tab, Tabs

layout = Tabs(
    Tab("Content", Section(Row("title", "slug"), "body")),
    Tab("SEO", Section("meta_title", "meta_description")),
)

A field the layout forgets is appended rather than dropped, and a field it names that does not exist fails manage.py check rather than silently vanishing from the form.

Brand it

VANTAGE = {
    "SITE_TITLE":  "Acme",
    "LOGO":        "img/acme.svg",
    "BRAND_COLOR": "#0ea5e9",
    "THEME":       "system",
}

One colour produces a complete palette for both themes, with contrast checked: the derived primary and its foreground are guaranteed to clear WCAG AA for any hue you supply.

Anything here can also be edited in the panel by a superuser — logo upload, brand colour, title, theme — and the database value overrides the file.

Pick a whole look with one line — the original vantage, shadcn/ui's stock shadcn, or slate, stone, zinc, rose, blue, green, violet, orange — and let each person choose their own from the account page:

VANTAGE = {"UI_THEME": "shadcn"}

Every preset is tested for WCAG contrast in light and dark. Docs →

The account page's look picker with ten theme presets

Organise the sidebar

VANTAGE = {
    "NAV": [
        {"route": "vantage:dashboard", "label": "Overview", "icon": "layout-dashboard"},
        {"group": "Commerce", "items": [
            {"model": "shop.Order", "badge": "live"},
            {"model": "shop.Product", "label": "Catalogue"},
        ]},
        {"group": "Elsewhere", "items": [
            {"url": "https://status.example.com", "label": "Status"},
        ]},
    ],
}

Declaring a nav can reorder, rename and hide — it can never grant access. Every entry still passes through the permission layer.

Add your own page

from vantage import Page, site

@site.register_page
class RevenuePage(Page):
    title = "Revenue"
    icon  = "trending-up"

    def get_context(self, request):
        return {"total": Order.objects.total_revenue()}

A class, a title, and a method. The URL, the nav entry and the rendering all have defaults, so a page with no template of its own still produces a presentable screen.

Configure it from the UI too

Everything above is the developer's API. The person running the panel day to day can often reach the same knobs without a deploy: a list's columns, filters, stats and charts have a customisation rail, the dashboard has its own "Add a card" editor, and branding and behaviour have a settings screen. All of it composes in one fixed order — UI override → panel.py / VANTAGE → inference — stated once in How configuration resolves, so "why is my panel.py being ignored?" has a single, findable answer.

What else is in the box

JSON API Every panel, through the same permission and validation path as the UI — cursor pagination, optimistic concurrency, errors as structured data. Docs →
Command palette ⌘ K with global search across every model you can see
Dashboard Widgets declared in Python, or built and arranged from the UI — stat, chart, table, list, or your own template
Soft delete A real Trash tab and Restore on any model with a deleted_at or is_deleted column, detected automatically
Duplicate and bulk edit Both reuse the exact form and validation a single record uses
Multi-tenancy Scope every registered model to a tenant with one setting, fail-closed. Docs →
Cascade-delete preview The real tree of what a delete takes with it, counted
Read-only mode, impersonation Both enforced in the permission layer
System health page Migrations, cache, database, task backend
Export as CSV, TSV, JSON, Excel or PDF; CSV import Export honours the filters and sort you are looking at and the same masking and field permissions in every format; import maps, previews and validates first. Docs →
Light, dark and system themes, RTL All from day one, with en and ar catalogues shipped
Read-only legacy tables read_only = True with an editable_fields allowlist for tables another system owns, enforced for everyone. Docs →
Rich-text editor A small WYSIWYG editor for HTML fields; the HTML is sanitised against an allowlist on save and again on render, and a project can widen the list. Docs →
Two-factor sign-in, several devices Authenticator-app codes with recovery codes; each person can register more than one device and remove a lost one. Docs →
Safe access for AI agents Opt-in (AGENTS). Bearer-token agent identities that can only be narrowed, read-only by default, with allowed models, rate limits, write budgets, hidden fields, dry run, approvals, undo of a whole run and an activity page. Docs →
MCP server Generic tools over HTTP and stdio for any MCP client; every call goes through the JSON API, so every guard applies. Docs →
Tooling for coding agents manage.py vantage_describe and llms.txt describe a project's admin without row data. Docs →
Password reset Opt-in reset flow on the sign-in page using Django's tokens and email; no account enumeration, rate limited, two-factor stays on. Docs →
History for changes outside the panel Opt-in: shell, script and signal saves of chosen models land in the same audit log and history, marked as outside the panel. Docs →
Single sign-on role mapping Identity-provider groups (Entra ID, Okta, Keycloak) mapped onto roles at every sign-in. Docs →
Notifications and metrics Slack, Teams and email for approvals and failures; a Prometheus endpoint and slow-request log. Runbook →
Upgrade checks A written deprecation policy and manage.py vantage_upgrade_check. Docs →
Query-count guarantees select_related and prefetch_related are derived from what the page renders, and tests assert the cost does not grow with the row count

Documentation and roadmap

The documentation covers every feature; the settings reference lists every VANTAGE key, and API stability says what is frozen. History with point-in-time restore, approvals, two-factor sign-in, field permissions, scheduled reports, webhooks, the phone layout, access review and break-glass access have all shipped since the last published release; what is next is on the roadmap.

Security

An admin panel is a high-privilege surface. Vantage fails closed (tenancy, read-only mode, field permissions and approvals are enforced in the permission layer, before the superuser bypass where it matters), refuses active-content uploads, masks secrets and audits what people do. Read the security model and threat model before exposing it, and report vulnerabilities privately as described in SECURITY.md. It has not had an independent external audit yet.

How it compares, and its limits

Vantage replaces django.contrib.admin rather than theming it, so ModelAdmin-based plugins do not run inside it; manage.py vantage_adopt previews what translates. See the comparison with Unfold and admin themes, plugin compatibility and the FAQ's honest list.

Requirements

Python 3.12, 3.13, 3.14 · Django 5.2 LTS, 6.0, 6.1

Django is the only runtime dependency. No Node.js — assets ship prebuilt. django-guardian, django-rules and django-simple-history are used if present, never required.

Try the demo

A full demo shop lives in example/:

git clone https://github.com/Pythondeveloper6/django-vantage
cd django-vantage
uv sync --all-groups
./example/run.sh          # migrate, seed, and serve on :8765

Sign in as admin / admin12345. Step-by-step lesson projects (starter and solution) sit beside it.

Contributing

Contributions are welcome — bug reports, docs fixes and pull requests alike. Start with CONTRIBUTING.md, and please report security issues privately as described in SECURITY.md.

uv sync --all-groups
uv run pytest
uv run ruff check src tests
uv run mkdocs serve       # the documentation site, on :8000

Licence

django-vantage is open source under the MIT licence. Copyright © 2026 Mahmoud Ahmed.

You may use, modify and redistribute it, commercially or not, as long as the copyright notice and the licence text are kept in every copy or substantial portion of the code. If django-vantage helps your project, a link back to this repository is always appreciated.

About

An extensible Django admin platform with analytics, permissions, and multi-tenancy.

Topics

Resources

Code of conduct

Contributing

Security policy

Accessibility

Stars

43 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages