mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-30 19:20:56 +01:00
e140c41a89
- apply general fixes to existing markdown documentation - various cases of rst syntax still used - update some links to be the new format - clean up line breaks (prettier)
20 lines
518 B
Markdown
20 lines
518 B
Markdown
# Customising the base URL path
|
|
|
|
You can use the following attributes and methods on the `ModelAdmin` class to alter the base URL path used to represent your model in Wagtail's admin area.
|
|
|
|
```{contents}
|
|
---
|
|
local:
|
|
depth: 1
|
|
---
|
|
```
|
|
|
|
(modeladmin_base_url_path)=
|
|
|
|
## `ModelAdmin.base_url_path`
|
|
|
|
**Expected value**: A string.
|
|
|
|
Set this attribute to a string value to override the default base URL path used for the model to `admin/{base_url_path}`.
|
|
If not set, the base URL path will be `admin/{app_label}/{model_name}`.
|