On Sat, Jan 27, 2018 at 5:42 PM, Matemática A3K <matematica....@gmail.com>
wrote:

>
>
> On Sat, Jan 27, 2018 at 11:11 AM, Jason <jjohns98...@gmail.com> wrote:
>
>> My preference would be to create a signals.py file in the application and
>> put your signal there, for maximum accessibly and ease of location.
>> Signals, despite the appearance, are not asynchronous, and one of the
>> criticisms of usage is that its easy to forget *where* they're applied
>> and defined when figuring out odd behavior.
>>
>
> Indeed, but the best place IMO to put it is on model's save method:
>
>
https://stackoverflow.com/questions/38963193/auto-populate-slug-field-django

> --
>> You received this message because you are subscribed to the Google Groups
>> "Django REST framework" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-rest-framework+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to