fleetfox: you can get the request object with threadlocals
raposinha joined the channel
rpkilby joined the channel
fleetfox
dang`r`us: it's scope for multi tenancy
dang`r`us
fleetfox, hmmmm I see your problem, but I'd rather just write a few view methods or decorators/mixins or whatever then
fleetfox
yeah i have that now, it's pretty annoying
debnet joined the channel
dang`r`us
mhm
is_null
i'd rather spawn a wsgi instance per customer on a different db, and scale a lot better
fleetfox
i can't do that since half of the crap is shared
and juggling multiple databases would probably be worse
can't ensure referential integrity and what not
debnet
Hi guys. I have a model Task with a submodel TaskComment (user, date), I would like to retrieve all the tasks with the name of the latest contributor in the comment. How can I do that with a Django QuerySet?
fleetfox
unless i do FDWs or some other nasty thing
seems like threadlocals are lesser evil compared to that
is_null
i think they work the same though
mostlybadfly joined the channel
fleetfox
hmm, i could move the scope to database session or something
_jd has quit
and have magic views/triggers
dang`r`us
uuuuh triggers
dang`r`us runs
xliiv joined the channel
debnet
Anyone?
fleetfox looks at schinckel's boardinghouse
Ergo joined the channel
solomonix has quit
gutierri joined the channel
fleetfox
debnet: TaskComment has ForeignKey to task?
you probably want subquery or window function
none of them ar trivial
debnet
fleetfox, Yeah, TaskComment has a FK to Task.
madsj has quit
amirpro has quit
amirpro joined the channel
_kud has quit
jpg has quit
amirpro has quit
amirpro joined the channel
Hu0p has quit
amirpro has quit
lborda has quit
amirpro joined the channel
solomonix joined the channel
fission6 joined the channel
zeus1 has quit
rpkilby has quit
apollo13 has quit
amirpro has quit
rpkilby joined the channel
amirpro joined the channel
EvilDMP has quit
fnstudio joined the channel
amirpro has quit
amirpro joined the channel
apollo13 joined the channel
amirpro has quit
amirpro joined the channel
andym joined the channel
amirpro has quit
amirpro joined the channel
coderphive joined the channel
jwhitmore joined the channel
Perkol joined the channel
lborda joined the channel
andym has quit
kloudi joined the channel
amcorreia has quit
gutierri has quit
jtiai joined the channel
EvilDMP joined the channel
kloudi-- has quit
amcorreia joined the channel
amirpro_ joined the channel
amirpro has quit
amirpro_ is now known as amirpro
Fr4n has quit
Fr4n joined the channel
adsworth joined the channel
EvilDMP has quit
rjdp9736 joined the channel
rjdp9736
to get kwargs of a url route, is it ok to use request.parser_context.get('kwargs') ?
jwhitmore has quit
examples joined the channel
andym joined the channel
examples
Hello
aossama has quit
iamriel joined the channel
dlam joined the channel
aossama joined the channel
emihir0 has quit
Wooble joined the channel
is there someone who can help, perhaps
:D
tonythomas joined the channel
jobelenus joined the channel
knbk
rjdp9736: not sure what request.parser_context is, but the kwargs are available in request.resolver_match.kwargs
vmonteco joined the channel
vmonteco
Hello!
jobelenus
Has anyone run into this problem when using a SplitDateTimeWidget, I’m getting a template error: 'SplitDateTimeField' object has no attribute 'use_required_attribute'
I'm trying to setup a link for a user so it will login by clicking on it, I'm obtaining token from jwt, so I want to check for user id in payload and return the user