kopia lustrzana https://github.com/wagtail/wagtail
cd62c72dcc
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 |