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 do an intermediate form? Am I doing wrong at some point?
... 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__'
.... views.py
def Idioma(request):
form = IdiomaForm()
return render(request, 'curriculo/idioma.html', {'form': form})
.... language.html
{
% 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 %}