Posts by Bruno Sarante Faria • 1 point
2 posts
-
0
votes2
answers542
viewsA: Django - Questions with Foreignkey
I solved the problem. It is possible to execute a function before saving, so the code was: class Versao(models.Model): projeto=models.ForeignKey(Projeto, on_delete=models.CASCADE)…
-
0
votes2
answers542
viewsQ: Django - Questions with Foreignkey
I’m trying to make a form in Django, in which I will save the versions of the projects. Exemplo: Empresa x Projeto 1 Versão 1 Versão 2 Projeto 2 Versão 1 Empresa Y Projeto 1a Versão 1 ... It happens…