Skip to content

Instantly share code, notes, and snippets.

@lopinho
Created July 31, 2018 20:03
Show Gist options
  • Save lopinho/2bff570db02bb9d76ef3b2bf976a5e71 to your computer and use it in GitHub Desktop.
Save lopinho/2bff570db02bb9d76ef3b2bf976a5e71 to your computer and use it in GitHub Desktop.
Gerando cache do dicionario da nota da brbid
from novo_financeiro.tasks import *
nota = Nota.objects.filter(cache_dicionario__isnull=True).order_by('-id').first()
manager = NotaArrematacao(nota)
dicionario = manager.context()
nota.salva_dicionario_no_cache(dicionario)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment