MessageFailure in Django 1.4 admin
|Reported by:||Simon||Owned by:||nobody|
|Severity:||Normal||Keywords:||admin, messages, failure|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When not having the Django messages framework installed, Django 1.4 throws as exception on saving objects via the admin interface:
MessageFailure at /admin/forum/post/5/
You cannot add messages without installing django.contrib.messages.middleware.MessageMiddleware
When I disable loc 696 in contrib/admin/options.py, everything works fine:
def message_user(self, request, message):
Send a message to the user. The default implementation
posts a message using the django.contrib.messages backend.
# messages.info(request, message)
messages.info can only be used when the optional messages framework is installed ...?
Another minor thing:
Even with the new cookie based session backend, Django still creates a database session table. Intentionally?
Great work and thanks a lot for Django 1.4!!
Change History (14)
comment:1 Changed 2 years ago by Clueless
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Resolution set to invalid
- Status changed from new to closed
comment:4 in reply to: ↑ 2 Changed 2 years ago by aaugustin
comment:6 Changed 2 years ago by akaariai
- Resolution invalid deleted
- Status changed from closed to reopened
- Triage Stage changed from Unreviewed to Accepted