Questions tagged [wagtail-admin]

135 questions
4
votes
1 answer

Change Page owner in Wagtail admin

We have a Wagtail site where various people contribute to a news item before its published and the person who creates the page is not necessarily the main author. I'm looking for way to edit the Page.owner in the Wagtail admin. In the model class…
Zemogle
  • 584
  • 4
  • 16
4
votes
1 answer

Difference between Wagtail admin Site and Django admin Site?

This may be a basic question, but it puzzles me and I couldn't find an answer on the web. In my Wagtail admin I see a menu entry 'Sites' with (in my case) one item, in which I can configure a host name, a port, a site name, a Wagtail root page and a…
Paul Rene
  • 680
  • 4
  • 14
4
votes
1 answer

Remove "Internal link" option from Wagtail RichTextField link picker

My company is running Wagtail as a headless API, using it more as a way to store bits of content rather than entire pages. As such there's the occasional feature that doesn't make sense for us. In this case it's the "internal link" feature. Since we…
commadelimited
  • 5,656
  • 6
  • 41
  • 77
3
votes
1 answer

How to customize the admin form for a custom image model in Wagtail CMS?

I need to add a string based unique ID to Wagtail’s image model. These IDs are a relatively short combination of letters, numbers and punctuation, e.g. "AS.M-1.001". So I am using a custom image model with Django’s standard CharField for that with…
Fuchsi
  • 127
  • 5
3
votes
0 answers

Wagtail admin page very slow to load for some users (explorable_pages() issue?)

I have a site with around 4000 pages which is using fine grained permissions on around 400 of those pages. For some users accessing the /admin/ page the page loads in a second or so. For others the page can take around 5 minutes to load. Profiling…
pillingworth
  • 3,238
  • 2
  • 24
  • 49
3
votes
0 answers

Displaying fields not intended to be edited in ModelAdmin

I have a custom contact form for which I create a sent_time field using auto_now_add to save the time when the user had sent the message. I am able to list all the information on the listing view of the admin panel however when I try to enter a…
Freemium
  • 450
  • 6
  • 16
3
votes
1 answer

many-to-many relationship of wagtail page model to itself?

So i got a PlantDetailPage model with "companion" field among others (yes plants can be companions), in which I should be able to select other PlantDetailPages. I got the thing to show up, create new plants in inline (yes, a menu in the menu in the…
illevens
  • 343
  • 1
  • 13
3
votes
1 answer

Move Wagtail Admin list_filter on header - List Filter covering table data

I have a model with fields shown in the image. I have created the following ModelAdmin in wagtail_hooks.py. class opportunitiesAdmin(ModelAdmin): model = opportunities menu_label='Opportunities' menu_icon='fa-briefcase' list_display…
Bikash kharel
  • 472
  • 7
  • 16
3
votes
1 answer

Is there a right way to open modal window in wagtail-admin?

I try to improve my wagtail-admin and now I stack because there is no way to open a modal window. Yes, of course, I could create a div with a close button, but this would be not the right way. As I've got, there is a special function (or object)…
Savel Mtrx
  • 83
  • 5
2
votes
1 answer

Wagtail 'View live' button provides wrong url after page creation while using id as slug

I have a case that uses Page ID as a slug, after creating a new Page, Wagtail provides us a "View live" button but when we click on that button, it provides a wrong URL The right URL should be ".../property-list/" I have searched on…
Chris Dao
  • 35
  • 5
2
votes
1 answer

Default blocks for wagtail's StreamField when a new Page is created

Is there a way to create a page model with a StreamField that has default blocks when a new page is created? For example I have this custom page: class CustomPage(Page): body = StreamField([("text", TextBlock())]) and I always want to have a…
movileanuv
  • 350
  • 1
  • 12
2
votes
1 answer

How do you restrict a Wagtail image chooser panel to a collection

I have a field in a model called profile_images, how do I restrict the images shown in the image chooser panel to the profile images collection? I also want to do the same with an inline panel for the gallery collection. This means I cannot use…
James
  • 23
  • 3
2
votes
1 answer

Guidelines for using Wagtail Pages or Django models?

For example, I want to build an ecommerce website using wagtail, one component is order. I think order should not wagtail Page, but simple Django model, see code below. from django.db import models from wagtail.admin.edit_handlers import ( …
avocado
  • 2,615
  • 3
  • 24
  • 43
1
vote
1 answer

Re-populate Image "Usage" references in Wagtail Admin?

Image usage field Hi, I recently upgraded Wagtail from v2 to v4 and noticed they added a new metafield called image usage in Wagtail Admin. But the issue is that all images referenced before the upgrade say they are used 0 times. It seems like the…
1
vote
2 answers

Can I create a custom Column of type "boolean" in SnippetViewSet

I have a SnippetViewSet in Wagtail 5 which is in fact a boolean. The field is added in the queryset using an annotation: class PartnerViewSet(SnippetViewSet): model = Partner list_display = [ Column("is_current_partner",…
Maarten Ureel
  • 393
  • 4
  • 18
1
2 3
8 9