We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The flatpages app is built into Django but lacks a decent editor:
https://docs.djangoproject.com/en/4.2/ref/contrib/flatpages/
I'd love to see some docs on how to attach the Quill editor to the django flatpages admin.
The text was updated successfully, but these errors were encountered:
It's not hard as it happens, but still would be nice to see it documented as it's a common use case IMHO.
In the app's top directory, just ad admin.py if you don't have one or open it if you have one and add:
admin.py
from django.contrib import admin from django.contrib.flatpages.admin import FlatPageAdmin from django.contrib.flatpages.models import FlatPage from django.db import models from django_quill.widgets import QuillWidget class FlatPageCustom(FlatPageAdmin): formfield_overrides = { models.TextField: {'widget': QuillWidget} } admin.site.unregister(FlatPage) admin.site.register(FlatPage, FlatPageCustom)
Sorry, something went wrong.
No branches or pull requests
The flatpages app is built into Django but lacks a decent editor:
https://docs.djangoproject.com/en/4.2/ref/contrib/flatpages/
I'd love to see some docs on how to attach the Quill editor to the django flatpages admin.
The text was updated successfully, but these errors were encountered: