oscarmlage / django-cruds-adminlte

django-cruds is simple drop-in django app that creates CRUD for faster prototyping
BSD 3-Clause "New" or "Revised" License
424 stars 83 forks source link

Updateview success_url cannot change with POST parameter #87

Open bgunebakan opened 6 years ago

bgunebakan commented 6 years ago

Hi, I want to change success_url listview to detailview or some extra url. I have tried with post parameter like: POST /project/comment/create?success_url=/project/& but i didnt work. i have tried with hidden input type inside html form. and added success_url="/project/" to Crudview in views.py no chance.

Anyone can help post parameter for success_url ?

Regards..

bgunebakan commented 6 years ago

I deleted success_url=reverse_lazy(url), line in initialize_create(self, basename) function. and added def get_absolute_url(self): to my models. It works now but initialize_delete function working like default list view.