Skip to content

Commit

Permalink
feat(core): new field type markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc committed Nov 11, 2024
1 parent 479de8e commit 1f9ac5f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/api/react_ui_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class OverRideJSONAPIMetadata(JSONAPIMetadata):
User: 'Relationship',
UserBaseSerializer: 'Relationship',
centurion_field.CharField: 'String',
centurion_field.MarkdownField: 'Markdown'
}
)

Expand Down
11 changes: 11 additions & 0 deletions app/core/fields/markdown.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from rest_framework import serializers

from core.fields import CharField



class MarkdownField(CharField):

def __init__(self, multiline = True, **kwargs):

super().__init__(multiline = multiline, **kwargs)

0 comments on commit 1f9ac5f

Please sign in to comment.