mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-03-21 16:30:32 +00:00
Previously, we used a property to do this. Heres the advantages of the new way: - The old way felt a bit like it was pretending to be a database field when it wasn't. The new way makes it easier for the developer to understand that this is just a setter/getter for 4 fields and not a field itself. - Code looks nicer - Easier to override in subclasses - More like Django user model |
||
|---|---|---|
| .. | ||
| images | ||
| pages | ||
| search | ||
| form_builder.rst | ||
| index.rst | ||
| sites.rst | ||
| snippets.rst | ||