On 19-Mar-09, at 8:35 AM, Jesse wrote: > My concern is that each view has 87 lines of duplicate code from the > "GET" data to get the appended list (shown here as: data retrieved to > create a list .....list.append(publications)). Anytime I make a > change in one view I have to remember to make the change in the other > view.
A view is just a Python function, you can do whatever you'd normally do to refactor Python to refactor views. So move the 87 lines of duplicated code into another function and re-use. -- Andy McKay Clearwind Consulting: www.clearwind.ca Blog: www.agmweb.ca/blog/andy Twitter: twitter.com/clearwind --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

