Posts by Caike Colantonio • 15 points
3 posts
-
0
votes0
answers25
viewsQ: Find the chosen option in HTML with Django form
Hello, I created a form with some options to be chosen, follows Forms.py file class BuscaForm(forms.Form): FIELDCHOICE = [ ('1', 'CNPJ'), ('2', 'Razão Social'), ('3', 'Nome Fantasia'), ('4',…
-
0
votes1
answer179
viewsQ: Create spreadsheets with Django
Hello, I am implementing a button to turn a Query into a spreadsheet and make this download available. For this I created a View to generate Excel, follows: def export_view_csv(request): if request…
-
1
votes1
answer110
viewsQ: How to pull a Foreignkey from the models on Django?
Hello I am developing an application and I have a problem, if someone knows how to solve. I created the following models: class Cliente(models.Model): user = models.OneToOneField(User,…