Re: View.py v models.py

2012-09-26 Thread Lachlan Musicman
On Thu, Sep 27, 2012 at 10:59 AM, Javier Guerra Giraldez wrote: > On Wed, Sep 26, 2012 at 5:50 PM, Lachlan Musicman wrote: >> Do people have internal guidelines about when they make something a >> method on a model rather than a view function? > > if it's not a presentation thing, it probably goe

Re: View.py v models.py

2012-09-26 Thread Javier Guerra Giraldez
On Wed, Sep 26, 2012 at 5:50 PM, Lachlan Musicman wrote: > Do people have internal guidelines about when they make something a > method on a model rather than a view function? if it's not a presentation thing, it probably goes in the model even some presentation things go there, like the __unico

View.py v models.py

2012-09-26 Thread Lachlan Musicman
Hi I was doing some work on a view last night and realised that the code could go into either views.py or as a method on the model. Do people have internal guidelines about when they make something a method on a model rather than a view function? Is there any functional difference apart from the