mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
0b40197cd2
- Part model now has active_builds and inactive_builds properties -
22 lines
479 B
Python
22 lines
479 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.contrib import admin
|
|
|
|
from .models import Build
|
|
|
|
|
|
class BuildAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ('part',
|
|
'status',
|
|
'batch',
|
|
'quantity',
|
|
'creation_date',
|
|
'completion_date',
|
|
'title',
|
|
'notes',
|
|
)
|
|
|
|
admin.site.register(Build, BuildAdmin)
|