hey - im kinda new to python and django - and would like to know how do i override a django class method?
bkxd has quit
Muchoz joined the channel
lorddaedra has quit
commx has quit
kingarmadillo joined the channel
fikka has quit
Haudegen joined the channel
listenmore has quit
zwliew has quit
kingarmadillo has quit
mayhew joined the channel
FunkyBob
arielfe1984: any particular class you had in mind?
ytsejam
Solved somehow, rewrite from middle and makemigrations and migrate again. Happy new year everyone
FunkyBob
15 minutes and counting
fub
Do you guys usually re-use forms for example for adding and editing a model? Because I always try to do this, but a lot of the times I find that I need to change a few things (hide/add/merge/etc) so I make a new form
sarp has quit
aossama has quit
FunkyBob
fub: where you can, you do... where you can't... don't
fikka joined the channel
arielfe1984
hey - im kinda new to python and django - and would like to know how do i override a django class method?
moldy
arielfe1984: the same as any other class method. you just define it on your subclass.
FunkyBob
arielfe1984: I tried to answer you... but you appeared to ignore me
arielfe1984
FunkyBob: hey im sorry im multi tasking
Combined2857 joined the channel
moldy: and should it matter if the method im trying to override has this decorator: @cached_property
?
FunkyBob
get to the point, arielfe1984 ... tell us exaclty what method you are trying to override and why
instead of drip feeding the details
yes it matters if it's decorated with that
arielfe1984
Funkybob: ok - im using django 1.11 which has a bug with pylibmc that doesnt allow me to access memcache
moldy
depends on what you mean by "matters" :) but FunkyBob is right, give us the whole picture
ytsejam
arielfe1984, accessing del self.__dict__['options'] , do you mean this?
moldy
arielfe1984: is this bug known and documented? can you show us your code?
aossama joined the channel
arielfe1984
ytsejam: i am not sure what you mean - the class PyLibMCCache in django/core/cache/backends/memcached.py in the _cache method
b0nn
annnnf fireworks
arielfe1984
moldy: im not sure it is know or documented
*known
moldy
arielfe1984: if it isn't, the first thing you should do is to report it with all the necessary details so others can reproduce it
arielfe1984
i am using django1.11 python 3.4 and pylibmc 1.5.2 (tried with 1.5.0 and same bug happens)
knbk
or first check here if it's actually a bug by showing your code
there is a near constant rumble coming from the direction of the city.... I assume it's fireworks
oh, it finished
mattmcc
Yeah. I saw a bit on Channel 7 about Melbourne having a bigger show than Sydney this year. Apparently there's a bit of an inferiority complex going on.
knbk: lol yeah i guess its not such a good idea - it wasnt me who wrote this - but then again i think that its reasonable to expect memcache to fail silently isnt it?
aussiejames has quit
moldy
my first guess is an incompatible version of some library