Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Intermediate container for flash messages.

This is useful as, at the time of creating the message, we don't know
whether the response is an AJAX response or not.

src/d/j/django-oscar-0.7/oscar/apps/basket/views.py   django-oscar(Download)
        # django.contrib.messages as we may be returning an AJAX response in
        # which case we pass the messages back in a JSON payload.
        flash_messages = ajax.FlashMessages()
 
        for form in formset:
    def formset_invalid(self, formset):
        flash_messages = ajax.FlashMessages()
        flash_messages.warning(_("Your basket couldn't be updated"))
 
        if self.request.is_ajax():

src/d/j/django-oscar-HEAD/oscar/apps/basket/views.py   django-oscar(Download)
        # django.contrib.messages as we may be returning an AJAX response in
        # which case we pass the messages back in a JSON payload.
        flash_messages = ajax.FlashMessages()
 
        for form in formset:
    def formset_invalid(self, formset):
        flash_messages = ajax.FlashMessages()
        flash_messages.warning(_("Your basket couldn't be updated"))
 
        if self.request.is_ajax():