From 8f33cae6c2e0b9cc78af9d50f4f2bd39d3a343b7 Mon Sep 17 00:00:00 2001 From: adi <> Date: Sat, 28 Dec 2019 09:59:32 +0100 Subject: [PATCH] Revert "Closes #165: get_internal_type returns TextField" This reverts commit 21cae7f26196f8b351cc0ea050ea2da6780d17c8. --- markdownx/models.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/markdownx/models.py b/markdownx/models.py index c2abed2..96dfc09 100644 --- a/markdownx/models.py +++ b/markdownx/models.py @@ -6,11 +6,11 @@ from .fields import MarkdownxFormField class MarkdownxField(models.TextField): """ Custom Django field for Markdown text. - + Parameters are identical to those of the ordinary Django **TextField** parameters for the model fields. For consistency therefore, the descriptions have been borrowed from Django's official documentations (with minor modifications). - + :param verbose_name: A human-readable name for the field. If the verbose name isn't given, Django will automatically create it using the field's attribute name, converting underscores to spaces. @@ -38,14 +38,11 @@ class MarkdownxField(models.TextField): :type error_messages: dict :param kwargs: Other ``django.db.models.field`` parameters. See Django documentations_ for additional information. - + .. _documentations: https://docs.djangoproject.com/en/1.10/ref/models/fields/#error-messages .. _validators: https://docs.djangoproject.com/en/DEV_CONTENTS_XML/ref/validators/ """ - def get_internal_type(self): - return 'MarkdownxField (TextField)' - def formfield(self, **kwargs): """ Customising the ``form_class``.