Questions tagged [wagtail-admin]
135 questions
0
votes
1 answer
Wagtail Admin - Allow Editor to Edit Custom Setting
I have created a custom setting in Wagtail, allowing an alert banner to be edited in the admin.
from django.db import models
from wagtail.contrib.settings.models import BaseSetting, register_setting
from wagtail.admin.edit_handlers import…

kbdev
- 1,225
- 1
- 13
- 33
0
votes
1 answer
Why duplicated "title" textbox on Wagtail Admin portal?
with below customized Page model,
class PostDetail(Page):
body = RichTextField(blank=True)
search_fields = Page.search_fields + [
index.SearchField("body"),
]
content_panels = Page.content_panels + [
…

Yan Tian
- 377
- 3
- 11
0
votes
0 answers
How to inspect two tables at the same time in wagtail modeladmin?
In my question, there are two related models:
class Simulation(index.Indexed, ClusterableModel):
name = models.CharField("算例名称", max_length=255, blank=True) name = models.CharField("算例名称", max_length=255, blank=True)
panels = [
…

txf
- 19
- 3
0
votes
1 answer
Page Type showing "Home page" or "page" randomly
I followed Official Wagtail Docs to integrate freshly installed Wagtail into existing Django project.
I added customized HomePage class in existing Django's models.py.
# myDjangoProject/models.py
class HomePage(Page):
template =…

Yan Tian
- 377
- 3
- 11
0
votes
1 answer
What is the purpose of slug for wagtail root page
My urls.py file as below:
urlpatterns = [
path('',TemplateView.as_view(template_name='homepage.html'),name='home'),
path('admin/', admin.site.urls),
path('cms/', include(wagtailadmin_urls)),
path('documents/',…

Yan Tian
- 377
- 3
- 11
0
votes
1 answer
FieldPanel failed to be reflected on content_panels
I am integrating wagtail into my existing Django project.
before integration: file architecture is as below
|- MyProject/
__|- templates/
__|- manage.py
__|- MyProject/
____|- urls.py
____|- models.py
____|- settings.py
____|- views.py
After I…

Yan Tian
- 377
- 3
- 11
0
votes
1 answer
how to update more than one database table within one modeladmin form in wagtail?
In my question, there are three related models:
class DicSoftware(index.Indexed, ClusterableModel):
name = models.CharField("软件名称", max_length=255, blank=True)
version = models.CharField("版本号", max_length=255, blank=True)
panels =…

txf
- 19
- 3
0
votes
2 answers
How to find out current logged-in user in widget in Django Wagtail
I have been looking for a way to find out who the current logged-in user is in Django Wagtail so that I could create a widget to render a base setting field to be editable/non-editable. I was able to get some basic logic working but couldn't figure…

leol
- 37
- 6
0
votes
1 answer
How is a FieldBlock rendered in wagtail cms 2.13.x?
Since Wagtail 2.13.x, the render_form method is removed from the FieldBlock (A block inherited by most default blocks such as CharBlock, TextBlock etc.)
How are these blocks rendered using Wagtail 2.13.x?
A test for rendering a block is as…

Vincent
- 1,494
- 12
- 26
0
votes
0 answers
404 error when access Wagtail cms page after Integrating Wagtail with existing Django project
I am new to Wagtail and intended to learn by practice.
Django=3.0.5 | Wagtail=2.13.1 | Python=3.7.10
I have existing Django project with below file structure:
|- manage.py
|- static/
|- templates/
|- IoTSite/
___|- urls.py
___|- settings.py
___|-…

Yan Tian
- 377
- 3
- 11
0
votes
1 answer
How to add tags when add a page to a known parent programatically in wagtail?
I would like to create programatically a sub page for a known parent.
here is the code.
parent_page = Page.objects.get(title='index02').specific
news_page = BlogPage(
title = 'title test 08',
slug = 'title_test_08',
body='Something…

Kevin
- 41
- 3
0
votes
1 answer
Suddenly We're not able to add more images in specific page in Wagtail with 400 Bad Request Error
This is the Gallery Page models, we've added 142 image so far, and we're able to add more images in other pages, but on this one, even if I delete an image and try to add another one I got an 400 Bad Request on publishing and Error while sending…

Miriam Arbaji
- 319
- 1
- 3
- 17
0
votes
1 answer
Template and model reuse in Wagtail
I am building a fairly basic Wagtail site and have run into an issue regarding the reuse of models and templates.
Say my site has two kinds of entries:
blog posts and
events.
Both pages look the same and share many model fields (e.g., author,…

cfx210
- 1
- 2
0
votes
1 answer
Where is the client folder of wagtail on windows 10
I use pip to install wagtail on my computer. Its operating system is windows 10. In my project, I need to customise the admin UI, mainly to modify the css file in client folder. The folder client is peer to folder wagtai on github. But I can not…

txf
- 19
- 3
0
votes
2 answers
Wagtail Admin Forms ordering
I have list of Pages in Admin Panel Forms that look like on screenshot.
How can I add chronological sorting for this or some kind of ordering? I want that pages with new form submissions will appear at top of this list.

Oleksandr Romaniuk
- 61
- 1
- 7