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
>
[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
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
3 matches
Mail list logo