lundi 20 août 2018

Duplicate views or add parameters

I want to build a django application where the users are workers in a callcenter. When they talk to a client they have a specific task, but at some point they optionally might need to update the client's contact data.

The point is that there already is a view for updating the contact data. So I am wondering whether I should reuse that view. I can think of roughly three options:

  • Reuse the view and pass the return URL as parameter
  • Create a new view that reuses parts of the existing view (e.g. template)
  • Create a completely new view

What would you recommend and why?




Aucun commentaire:

Enregistrer un commentaire