mtn-django-inventory
Reusable Django app for inventory management. Admin-first, plug-n-play, works with any Django project.
Built for tracking IT hardware (Ubiquiti, cameras, cable, etc.) but general enough for any industry.
Features
- Items — serialized (serial# tracked) or bulk (quantity + unit)
- Categories — hierarchical (parent/child)
- Locations — physical locations
- Clients — swappable client model (mirrors
AUTH_USER_MODELpattern) - User assignment — assign items to staff via
AUTH_USER_MODEL - Custom fields — per-category EAV fields (text, number, date, boolean, URL)
- Status tracking — In Stock / In Use / Maintenance / Retired / Disposed
- Audit log — tracks status/location/client/assignment changes
- Asset tags — auto-generated on save (
ASSET-00001, configurable prefix/padding) - Label printing — print-ready thermal labels with QR code; label dimensions managed via
LabelFormatadmin model (default: 3.5in × 1.1in) - CSV export — admin action exports filtered items
- CSV import — upload CSV with preview/confirm step
Installation
pip install mtn-django-inventory
Add to INSTALLED_APPS:
INSTALLED_APPS = [
# ...
'inventory',
]
Run migrations:
python manage.py migrate
Settings
Add an INVENTORY dict to your Django settings (all optional):
INVENTORY = {
'BASE_TEMPLATE': 'base.html', # template to extend in any package views
'ENABLE_CLIENT': True, # set False to hide the Client field on all Item admin views
'ASSET_TAG_AUTO': True, # auto-generate asset tag on save when blank
'ASSET_TAG_PREFIX': 'ASSET', # prefix for generated tags, e.g. 'ASSET' → 'ASSET-00001'
'ASSET_TAG_PADDING': 5, # zero-pad width for the numeric portion
}
Swapping the Client Model
By default the package uses its own built-in Client model. To point to an existing model in your project (e.g. a CRM customer model), set INVENTORY_CLIENT_MODEL before running your first migration:
# settings.py
INVENTORY_CLIENT_MODEL = 'crm.Customer' # default: 'inventory.Client'
The target model must exist and be migrated before installing this package. This follows the same pattern as Django's AUTH_USER_MODEL.
If you change this after the initial migration you'll need to write a data migration to update the FK references.
Label Printing
Label dimensions are managed via the Label Formats section in Django admin. A default 3.5in × 1.1in format (standard Dymo/thermal label) is created automatically on first migrate.
Labels include the asset tag (large), item name, manufacturer, serial number, and a QR code encoding the asset tag and serial number. They auto-print on page load.
Admin (zero config)
- Click the 🏷 Label link on any row in the Items changelist
- Select items and use the Print labels for selected items action for bulk printing
Public URLs (optional)
Include in your project's urls.py to expose label views outside the admin:
path('inventory/', include('inventory.urls', namespace='inventory')),
Then access:
/inventory/labels/<pk>/— single item label/inventory/labels/?ids=1,2,3— bulk labels- Add
?format=<pk>to either URL to use a specificLabelFormat
CSV Import Format
Required column: name
Optional columns:
| Column | Notes |
|---|---|
asset_tag |
Must be unique |
item_type |
serialized or bulk |
status |
in_stock, in_use, maintenance, retired, disposed |
category |
Matched by name (case-insensitive) |
manufacturer |
|
model_number |
|
serial_number |
|
quantity |
Numeric |
unit |
each, ft, m, box, roll, lot |
purchase_date |
YYYY-MM-DD |
warranty_expiry |
YYYY-MM-DD |
purchase_price |
Numeric |
location |
Matched by name (case-insensitive) |
client |
Matched by name (case-insensitive) |
notes |
Unmatched category, location, and client values are silently skipped (item is still created).
Applying to fulcrumsupport
- Install:
pip install mtn-django-inventory(or add path dependency in pyproject.toml during dev) - Add
'inventory'toINSTALLED_APPS - Run
python manage.py migrate - Log into admin — Category, Location, Client, and Item sections appear
Suggested initial categories for IT hardware:
Hardware
Network
Ubiquiti
Switches
Routers
Security
Cameras
NVR
Cabling
Cat6
Fiber
Coax
Compute
Servers
Workstations
Metadata
Release files for mtn-django-inventory 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mtn_django_inventory-0.3.3.tar.gz | 14.8 kB | Without provenance | Details for mtn_django_inventory-0.3.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mtn_django_inventory-0.3.3-py3-none-any.whl | Python 3 | none | any | Details for mtn_django_inventory-0.3.3-py3-none-any.whl |
Total release size: 36.0 kB
Release files / mtn_django_inventory-0.3.3.tar.gz
| Download URL | mtn_django_inventory-0.3.3.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5969b23c1a4612a0df8794651ccaac487a2b92003f22b35fd431e55ec628ee4a
|
|
BLAKE2b-256 checksum How to use checksums |
0566905d773d178a83193adcef1af7aa01224c02c412ef0917ba8e48e3b32251
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / mtn_django_inventory-0.3.3-py3-none-any.whl
| Download URL | mtn_django_inventory-0.3.3-py3-none-any.whl |
|---|---|
| Size | 21.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d536469308714b38c297afde57e8c66f4b3cea1a2b2522906a421fe0d0df168
|
|
BLAKE2b-256 checksum How to use checksums |
f839c913401c0c7b85b5b40e245e6fded7f98e76a36838319917ee96eb45c1bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for mtn-django-inventory 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.