Docs - Add AbstractUser import to custom user model

- `from django.contrib.auth.models import AbstractUser`
- revise a previous changelog entry to clarify 'clean up' vs 'fix'
pull/5615/head
LB (Ben Johnston) 2019-09-29 08:56:40 +10:00 zatwierdzone przez LB
rodzic 9d7d09bd75
commit 03cd4056df
3 zmienionych plików z 6 dodań i 2 usunięć
docs
advanced_topics/customisation
releases

Wyświetl plik

@ -25,7 +25,8 @@ Changelog
* Allow `register_page_action_menu_item` and `construct_page_action_menu` hooks to override the default menu action (Rahmi Pruitt, Matt Westcott)
* Add docs table template rendering example (Matt Westcott)
* Add blog about image uploads in Wagtail forms to third party tutorial documentation (a-mere-peasant)
* Fix multiple minor documentation issues (David T Thompson, ryanomor, kailwallin)
* Clean up multiple minor documentation issues (David T Thompson, ryanomor, kailwallin)
* Add AbstractUser import to custom user model documentation (LB (Ben Johnston))
* Fix: Added line breaks to long filenames on multiple image / document uploader (Kevin Howbrook)
* Fix: Added https support for Scribd oEmbed provider (Rodrigo)
* Fix: Changed StreamField group labels color so labels are visible (Catherine Farman)

Wyświetl plik

@ -12,6 +12,8 @@ two fields. The foreign key references another model (not shown).
.. code-block:: python
from django.contrib.auth.models import AbstractUser
class User(AbstractUser):
country = models.CharField(verbose_name='country', max_length=255)
status = models.ForeignKey(MembershipStatus, on_delete=models.SET_NULL, null=True, default=1)

Wyświetl plik

@ -44,7 +44,8 @@ Other features
* Allow ``register_page_action_menu_item`` and ``construct_page_action_menu`` hooks to override the default menu action (Rahmi Pruitt, Matt Westcott) - thanks to `The Motley Fool <https://www.fool.com/>`_ for sponsoring review of this feature
* Add docs table template rendering example (Matt Westcott)
* Add blog about image uploads in Wagtail forms to third party tutorial documentation (a-mere-peasant)
* Fix multiple minor documentation issues (David T Thompson, ryanomor, kailwallin)
* Clean up multiple minor documentation issues (David T Thompson, ryanomor, kailwallin)
* Add AbstractUser import to custom user model documentation (LB (Ben Johnston))
Bug fixes