2
0
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:
Oliver Walters
2020-01-31 20:28:54 +11:00
parent b5f8635794
commit 596d06cf1a
4 changed files with 23 additions and 0 deletions

View File

@ -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')