mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-09 08:05:13 +02:00
adding support for images as knowledgebase attachment
This commit is contained in:
@ -15,7 +15,7 @@ from django.db.models import Q
|
||||
from django.utils.encoding import smart_text, smart_str
|
||||
from django.utils.safestring import mark_safe
|
||||
|
||||
from helpdesk.models import Attachment, EmailTemplate
|
||||
from helpdesk.models import FollowUpAttachment, EmailTemplate
|
||||
|
||||
from model_utils import Choices
|
||||
|
||||
@ -218,7 +218,7 @@ def process_attachments(followup, attached_files):
|
||||
|
||||
if attached.size:
|
||||
filename = smart_text(attached.name)
|
||||
att = Attachment(
|
||||
att = FollowUpAttachment(
|
||||
followup=followup,
|
||||
file=attached,
|
||||
filename=filename,
|
||||
|
Reference in New Issue
Block a user