hmm, if we sign the session id with it yes, but I am not sure that's done for the normal session
apollo13 goes looking
willingc has quit
sessionid is just a random string from a first glance
phildini joined the channel
Manyman has quit
stack has quit
stack__ has quit
estebistec joined the channel
aah joined the channel
m0rpho has quit
fpghost84
apollo13: I tried overwriting the delete method of my UserProfile model , with a def delete that included "self.avatar.delete()" before passing to the super, but still the jpeg remains on disk even after going from user profile
Itkovian has quit
rcscott joined the channel
altoids joined the channel
liori joined the channel
sudobangbang has quit
wgITos has quit
frostig has quit
altoids has quit
estebistec has quit
ASUChander has quit
CollinAnderson
fpghost84: and is your overridden save method actually getting called?
cewing has quit
or could it be a permission error?
dlogs has quit
fpghost84
CollinAnderson: I overwrote the delete method not the save method, maybe that is the problem....but no the delete method is not being called anyway as the print DEBUG I put does not show
blackbox_82327_ has quit
datreh has quit
Zeograd has quit
willingc joined the channel
m0rpho joined the channel
Zeograd joined the channel
Itkovian joined the channel
CollinAnderson: maybe I should override save method of my UserProfile model instead? What is the test I would need to find if Clear checkbox is ticked though
clime joined the channel
CollinAnderson
hah. yeah. that's tricky
hydraidm801 has quit
apollo13
uhm, I fail, self.avatar will be None, so you can't call delete on it after all I think
let me check the source
devlaps joined the channel
ghostlines has quit
Zeograd has quit
ASUChander joined the channel
Zeograd joined the channel
garnertb has quit
Itkovian has quit
garnertb joined the channel
bo1g has quit
garnertb has quit
oracal has quit
csotelo has quit
garnertb joined the channel
fpghost84: I think you'll have to handle this on the form level
kenny
interesting django select_for_update() gotca, if you stupidly put your filter conditions in the brackets they're ignored and all objects returned. (eg: select_for_update(id=1))
Zeograd has quit
tbaxter has quit
fpghost84
apollo13: ok, what would you suggest?
Zeograd joined the channel
apollo13: regarding the overriding models save or delete, I can confirm that if I override save, then my debug prints gets called, but overriding delete does not do anything ( I suppose because it's not the userprofile being deleted just the avatar)
apollo13
yes
radez is now known as radez_g0n3
tbaxter joined the channel
restless_being has quit
fpghost84
apollo13: but what should I override etc etc doing it on the forms level?
radez_g0n3 is now known as radez
apollo13: clean?
apollo13
dunno out of my head, you probably want to override the form, then clean and save
budrose joined the channel
budrose has quit
save the old storage path in clean and delete in save
budrose joined the channel
that's how I probably would do it, but the code is somewhat odd in that area and it's getting late here :)
chrisjones joined the channel
time for bed :รพ
fpghost84
apollo13: how would I detemine if clear check box ticked though
apollo13: haha ok, thanks for help
dray3 has quit
EvilDMP has quit
rojem has quit
rafales has quit
willingc has quit
Morto joined the channel
Siecje joined the channel
edgabaldi has quit
RayZa joined the channel
Bosox20051 joined the channel
Morto
Trying to override AllAuth templates with my own, but am not succeeding. What can be the problem?
keepguessing has quit
natea has quit
I've copied the templates to my projects/templates/accounts/, but the original templates in site-packages are still taking priority.
Morto: What's the path to one of your templates that you expect it override?
garnertb has quit
CollinAnderson
fpghost84: yeah, i was going to suggest overriding the form too (which isn't trivial in the first place), but yeah, you'd probably need to look at the source of "clearablefileinput"