I'm kind of new to django generic FormView. I'm missing something obvious, the form renders correctly but it is not saving the data:
forms.py
from perfiles.models import Perfil
class FormEditarPerfil(forms.ModelForm):
class Meta:
model = Perfil
fields = ('descripcion',)
views.py
from django.views.generic.edit import FormView
from forms import FormEditarPerfil
class EditarPerfil(FormView):
template_name = "perfiles/editar_perfil.html"
form_class = FormEditarPerfil
def get_success_url(self):
url = reverse_lazy('perfiles:propio', kwargs={'username': self.request.user.username})
return url