1

I'm working on a website for a public administration. In this website some pages might have a title which is longer than 255 characters.

Is it possible to change the default max_length of the Page title?

Thanks for the help

I'm using:

  • Python 2.7;
  • Django 1.11;
  • Wagtail 1.13.4;
nifel87
  • 17
  • 3

1 Answers1

1

What you are asking to do, in regards of django, is basically overriding parent model's attribute. There is answer about that here: In Django - Model Inheritance - Does it allow you to override a parent model's attribute?.

So, the answer is that no, you can't do it like that without some serious hacking. Maybe you should consider adding different property that you could use when rendering the page. It could, by default, use the title or something like that.

Juho Rutila
  • 2,316
  • 1
  • 25
  • 40