mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-08 12:50:55 +00:00
Update requirements
- Use markdownify for rendering - Use markdownx for editing
This commit is contained in:
@@ -11,8 +11,6 @@ from mptt.fields import TreeNodeChoiceField
|
||||
from django import forms
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
from pagedown.widgets import AdminPagedownWidget
|
||||
|
||||
from .models import Part, PartCategory, PartAttachment
|
||||
from .models import BomItem
|
||||
from .models import PartParameterTemplate, PartParameter
|
||||
@@ -20,20 +18,6 @@ from .models import PartParameterTemplate, PartParameter
|
||||
from common.models import Currency
|
||||
|
||||
|
||||
class PartAdminForm(forms.ModelForm):
|
||||
""" Override default form behaviour for the Part admin interface.
|
||||
|
||||
- Present the 'notes' field as a Markdown-editor
|
||||
|
||||
"""
|
||||
|
||||
notes = forms.CharField(widget=AdminPagedownWidget())
|
||||
|
||||
class Meta:
|
||||
model = Part
|
||||
fields = "__all__"
|
||||
|
||||
|
||||
class PartImageForm(HelperForm):
|
||||
""" Form for uploading a Part image """
|
||||
|
||||
@@ -120,7 +104,6 @@ class EditPartForm(HelperForm):
|
||||
'default_supplier',
|
||||
'units',
|
||||
'minimum_stock',
|
||||
'notes',
|
||||
'active',
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user