Re: Messages without text in the messages framework

2019-01-21 Thread Sebastian Lechner
Alright, thanks for the clarification.  I've already asked this question 
on Stack Overflow and will now try the same on the django-users mailing 
list.


On 20/01/2019 18:39, Adam Johnson wrote:
This mailing list is for the development of Django itself, not for 
support using Django. Please use the django-users mailing list for 
that, or IRC #django on freenode, or a site like Stack Overflow.


On Sat, 19 Jan 2019 at 16:00, Sebastian Lechner > wrote:


Dear Django developer community,

often I would like to trigger a message to the user with the
message rendered dynamically in the client-side JS code. I use the
message framework's tags to differentiate between the different
messages in JS.

Usually, I will define the message's text on the client side as
well, making it unnecessary to define the message text in the
Django backend. My first idea was to set the message text
parameter to "None" or the empty string when calling add_message.

Unfortunately, it seems that this will lead to the message beging
discarded. Is there are another way to send a message without text
(but a number of tags) with the messages framework?

Best regards
Sebastian

-- 
You received this message because you are subscribed to the Google

Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to django-developers+unsubscr...@googlegroups.com
.
To post to this group, send email to
django-developers@googlegroups.com
.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-developers/044afeb0-8ad5-82f4-7b9f-75ea6c5db44b%40seble.info

.
For more options, visit https://groups.google.com/d/optout.



--
Adam
--
You received this message because you are subscribed to the Google 
Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to django-developers+unsubscr...@googlegroups.com 
.
To post to this group, send email to 
django-developers@googlegroups.com 
.

Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM19QZvRGBP7U%3D2g6yrFO6wBp42gT%3DrivcEA4h%3D0Nm0Gow%40mail.gmail.com 
.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Django 
developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/f385c38a-3da2-5982-6d29-98b77e409cd1%40seble.info.
For more options, visit https://groups.google.com/d/optout.


Re: Messages without text in the messages framework

2019-01-20 Thread Adam Johnson
This mailing list is for the development of Django itself, not for support
using Django. Please use the django-users mailing list for that, or IRC
#django on freenode, or a site like Stack Overflow.

On Sat, 19 Jan 2019 at 16:00, Sebastian Lechner  wrote:

> Dear Django developer community,
>
> often I would like to trigger a message to the user with the message
> rendered dynamically in the client-side JS code. I use the message
> framework's tags to differentiate between the different messages in JS.
>
> Usually, I will define the message's text on the client side as well,
> making it unnecessary to define the message text in the Django backend. My
> first idea was to set the message text parameter to "None" or the empty
> string when calling add_message.
>
> Unfortunately, it seems that this will lead to the message beging
> discarded. Is there are another way to send a message without text (but a
> number of tags) with the messages framework?
>
> Best regards
> Sebastian
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/044afeb0-8ad5-82f4-7b9f-75ea6c5db44b%40seble.info
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Adam

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM19QZvRGBP7U%3D2g6yrFO6wBp42gT%3DrivcEA4h%3D0Nm0Gow%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.