Re: Class Based Views VS DRY principle

2016-11-04 Thread Artem Bernatskyy
TNX On Friday, November 4, 2016 at 5:56:56 PM UTC+2, Artem Bernatskyy wrote: > > Hello. > > Suppose i have a code (http://pastebin.com/6rUqKD8q) > > And in CBV there are a bunch of methods with EXACTLY the same code. > > My question is - can i somehow inherit them from ONE place, in order to be >

RE: Class Based Views VS DRY principle

2016-11-04 Thread Matthew Pava
[mailto:django-users@googlegroups.com] On Behalf Of Artem Bernatskyy Sent: Friday, November 4, 2016 10:56 AM To: Django users Subject: Class Based Views VS DRY principle Hello. Suppose i have a code (http://pastebin.com/6rUqKD8q) And in CBV there are a bunch of methods with EXACTLY the same code. My

Class Based Views VS DRY principle

2016-11-04 Thread Artem Bernatskyy
Hello. Suppose i have a code (http://pastebin.com/6rUqKD8q) And in CBV there are a bunch of methods with EXACTLY the same code. My question is - can i somehow inherit them from ONE place, in order to be able to edit them from one place ? Thanks for replies. -- You received this message becau