Hi! A signals related question: If I have a foreign key in my model A, pointing to the model B, will the A "post_delete" signal be launched when a B object is deleted?
i.e. will the signals follow the cascade delete?
omarek
Does CSS have a way to display text vertically ? (rotated 90 degrees)
apollo13
tapia: probably, but just try?
Zac12 joined the channel
Zac12
when serializing a object such as 'albums' that has a nested related field with a many to many relationship with 'songs' i need to prefetch all of song's details in order to avoid hitting the db multiple times, I do this here: https://dpaste.de/1mcQ
omarek
I think it does. Then how do I select such text ?
Zac12
anyone know of a better way? as you can see, it can get pretty big and monotonous and i don't know if it's the right way that i am doing it
greg_f joined the channel
tapia
apollo13: I've tried, and it's not happening, but maybe I'm doing something wrong
ashkan joined the channel
grandfatha joined the channel
apollo13: the B post_delete is executed, but the A's one isn't
apollo13
tapia: sounds odd
tapia
(and I'm positively sure that an A object is removed from the DB)
loic84 joined the channel
apollo13
actually, depending on how django deletes them, it might be that it issues a signle query for all the A and doesn't issue any signals
would have to check the code for that
keimlink has quit
benoitbb joined the channel
kezabelle
I expect it'd happen in minimal queries via a Collector, which probably means it wouldn't fire signals
sayan joined the channel
apollo13
kezabelle: yeah, but then again the collector also issues an __in query to delete iirc :þ
mascot66991 has quit
keimlink joined the channel
Natsu- joined the channel
jaitaiwa_ has quit
terrykfwong has quit
leptone has quit
krisd joined the channel
tapia
apollo13, kezabelle: no, I was wrong. It is correctly called. I had a typo in my code :-)