django-after-response
django-after-response copied to clipboard
how to import a model into "after response"?
I need to import a model into the after response, but I can not.
import after_response
@after_response.enable def example(): from automacao.models import Automacao Automacao.objects.count() ...
{ProgrammingError}relation "automacao" does not exist LINE 1: SELECT COUNT(*) FROM "automacao" WHERE "automacao"."is_delet...