mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-11 07:24:15 +00:00
Add a markdown editor for the 'Notes" field of Part model
https://github.com/timmyomahony/django-pagedown
This commit is contained in:
@ -8,6 +8,8 @@ from import_export.resources import ModelResource
|
||||
from import_export.fields import Field
|
||||
import import_export.widgets as widgets
|
||||
|
||||
from .forms import PartAdminForm
|
||||
|
||||
from .models import PartCategory, Part
|
||||
from .models import PartAttachment, PartStar
|
||||
from .models import BomItem
|
||||
@ -70,6 +72,9 @@ class PartResource(ModelResource):
|
||||
|
||||
class PartAdmin(ImportExportModelAdmin):
|
||||
|
||||
form = PartAdminForm
|
||||
#fields = "__all__"
|
||||
|
||||
resource_class = PartResource
|
||||
|
||||
list_display = ('full_name', 'description', 'total_stock', 'category')
|
||||
|
Reference in New Issue
Block a user