mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-29 11:10:24 +00:00
15 lines
296 B
Python
15 lines
296 B
Python
from django.contrib import admin
|
|
from django.db import models
|
|
|
|
from .widgets import AdminMarkdownxWidget
|
|
from .models import MarkdownxField
|
|
|
|
|
|
class MarkdownxModelAdmin(admin.ModelAdmin):
|
|
"""
|
|
|
|
"""
|
|
|
|
formfield_overrides = {
|
|
MarkdownxField: {'widget': AdminMarkdownxWidget}
|
|
}
|