Answer the question
In order to leave comments, you need to log in
What is the best way to add data to a Django form?
There is a model:
class A(Model):
name=CharField()
user = ForeignKey(User)
Class FA(ModelForm):
model=A
fields = ['name']
class AUpdateView(LoginRequiredUpdateView):
model = A
form = FA
success_url = '/'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question