mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
cc7593b44f
- Prevents recursion
13 lines
291 B
Python
13 lines
291 B
Python
from django.contrib import admin
|
|
|
|
from .models import PartCategory, Part
|
|
|
|
admin.site.register(Part)
|
|
|
|
# Custom form for PartCategory
|
|
class PartCategoryAdmin(admin.ModelAdmin):
|
|
# TODO - Only let valid parents be displayed
|
|
pass
|
|
|
|
|
|
admin.site.register(PartCategory, PartCategoryAdmin) |