Settings models
These models are responsible for storing settings that are configured by a user.
graph TD
A[LocaleSynchronization] --> B[wagtail.Locale]
style B stroke-dasharray: 5 5
LocaleSynchronization
Bases: Model
Stores the "Sync from" setting that users can add to Locales.
This tells Wagtail Localize to synchronise the contents of the 'sync_from' Locale to the 'locale' Locale.
Attributes:
| Name | Type | Description |
|---|---|---|
locale |
ForeignKey to Locale
|
The destination Locale of the synchronisation |
sync_from |
ForeignKey to Locale
|
The source Locale of the synchronisation |
Source code in wagtail_localize/models.py
2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 | |