1
What I want is in a single templante bring these 2 Forms simultaneously, in separate pages works, but the two together still could not do. Do I need to make an intermediate form? Am I making a point wrong?
... Forms.py
from django import forms
from .models import *
class IdiomaForm(forms.ModelForm):
class Meta:
model = Idioma
fields = '__all__'
class LinguagemForm(forms.ModelForm):
class Meta:
model = Linguagem
fields = '__all__'
.... py views.
def Idioma(request):
form = IdiomaForm()
return render(request, 'curriculo/idioma.html', {'form': form})
.... html language.
{
% extends 'curriculo/base.html' %}
{% block content %}
<form action="" method="post">
{% csrf_token %}
{{ form }}
<input type="submit" class="btn btn-info" value="Salvar">
</form>
{% endblock content %}
Thank you, I guess I didn’t quite understand the workings of a dictionary. Thank you again
– Gabriel Lemos