django-after-response icon indicating copy to clipboard operation
django-after-response copied to clipboard

how to import a model into "after response"?

Open eulercosta opened this issue 7 years ago • 0 comments

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...

eulercosta avatar Jun 25 '18 15:06 eulercosta