what i am looking for is similar to Django admin action while adding a new item. When we add an item in Django admin, if a required item is not in foreign key, there is a link given there itself to add the required foreign key item, when clicking the link another pop up window appears and we can save the required item there and can go back to the main form and continue the job there. Similar to this, i have done everything except the redirect it back to the previously filled form. So how i can go back to there. My view is as follows views.py

class IsoCreateView(LoginRequiredMixin, PassRequestMixin, SuccessMessageMixin, CreateView):
model = Iso
form_class = IsoCreateForm
template_name = 'forms/pefs_form.html'
success_url = reverse_lazy('data')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.