Skip to content

Commit

Permalink
django-user-messages 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Sep 25, 2022
1 parent 98bf5a8 commit ad36312
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ Change log
`Next version`_
===============

.. _Next version: https://github.com/matthiask/django-user-messages/compare/1.0...main

`1.0`_ (2022-09-25)
===================

.. _1.0: https://github.com/matthiask/django-user-messages/compare/0.8...1.0

- Added pre-commit.
- Raised the version requirements to Python >= 3.8, Django >= 3.2.
- Replaced the system check with a version which only cares about adding our
Expand Down Expand Up @@ -93,4 +100,3 @@ Change log
.. _0.6: https://github.com/matthiask/django-user-messages/compare/0.5...0.6
.. _0.7: https://github.com/matthiask/django-user-messages/compare/0.6...0.7
.. _0.8: https://github.com/matthiask/django-user-messages/compare/0.7...0.8
.. _Next version: https://github.com/matthiask/django-user-messages/compare/0.8...main
11 changes: 4 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@ Installation

- Install ``django-user-messages`` using pip into your virtualenv.
- Add ``user_messages`` to ``INSTALLED_APPS`` and run ``migrate``.
- Replace the default messages context processor with
``user_messages.context_processors.messages``. The context processor
provides both django.contrib.messages' and django-user-messages'
messages. Note that Django 2.2's admin app checks for the presence of
the default messages context processor, so you'll have to silence this
check by adding ``"admin.E404"`` to the ``SILENCED_SYSTEM_CHECKS``
setting.
- Add the ``user_messages.context_processors.messages`` message processor
somewhere *after* the default messages processor. Django's admin app checks
for the presence of the latter so you cannot simply remove it (except if you
want to silence the ``"admin.E404"`` system check).
- Use ``user_messages.api`` as you would use
``django.contrib.messages`` except that you pass the user model or ID
as first parameter, not the current request.
Expand Down
2 changes: 1 addition & 1 deletion user_messages/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION = (0, 8, 0)
VERSION = (1, 0, 0)
__version__ = ".".join(map(str, VERSION))

0 comments on commit ad36312

Please sign in to comment.