I didn't have one. I thought UpdateView would create the form for me. But I was working the problem and made one:
So I also changed my view:
-- from django.forms import ModelFormfrom . models import Circuitinfotable
class CircuitinfotableForm(ModelForm): class Meta: model = Circuitinfotable fields = '__all__'
class editLit(UpdateView): pk_url_kwarg = 'circuitid' model=Circuitinfotable form_class= CircuitinfotableForm template="/viewLit/editCircuit.html"# fields='__all__'
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cdbc9127-6a2f-4022-bbda-dfec83101834%40googlegroups.com.
No comments:
Post a Comment