its basically an application hosting platform, right?
lacrymology has quit
madboxs joined the channel
madboxs has quit
zamro has quit
zamro joined the channel
How does one have a static range?
I want to have something repeated in my template X times.
so, the same HTML repeat an arbitrary number of times.
mojtaba joined the channel
username_ has quit
madboxs joined the channel
zamro has quit
I guess I'll do range(0, x) and pass that?
madboxs has quit
Diemuzi has quit
brxs has quit
iogf has quit
maks25 joined the channel
workbean has quit
madboxs joined the channel
patricks1
if i've built my API using the django rest framework how can i go about re-using the serializers when building my django app (that will be consumed by a browser)?
i haven't read the django docs on the templating system enough.
romich joined the channel
thank you much!
kbck has quit
you rock, btw.
romich has quit
azon joined the channel
madboxs joined the channel
Diemuzi joined the channel
SpeakerToMeat has quit
Seaninho joined the channel
madboxs has quit
pyface has quit
one of the thing I most enjoy is watching videos on proper python programming, and then refactoring my own code.
jonez
greetings
what do I need to google for to learn how to make sure that there are action buttons such that the "delete" checkbox will do something?
nikhil_ joined the channel
I have this great TabularInline with a checkboxes, but no way to delete
brxs has quit
djapo has quit
kanja joined the channel
wyoung
G'day
mattmcc
jonez: Formsets have a 'can_delete' argument, but in an inline it's True by default.
MarkTheMark has quit
The objects are deleted when you submit, not when you check the box.
wyoung
mattmcc: how is your celery knowledge?
mattmcc
Eh, 3/10?
jonez
mattmcc, ya, I see the checkbox, but there aren't any submit buttons so I can use them
mattmcc
jonez: Just like with forms, Django doesn't render the submit button. That's up to your template.
jonez
mattmcc, ah, so when I click "save" it should JustWork
mattmcc
Oh, TabularInline. You're in the admin. Yeah.
wyoung
mattmcc: hmmmmm, I will ask my question any way :) I have a signal that recalculates denormalised values via a celery task when any value changes that affects them. I need to calculate a value using the denormalised values but I also need to change a value that will trigger the signal. I am wondering if it is possible to make change that triggers signal, wait for the denormalised values to be updated,
jonez
mattmcc, ok, just tried. it's working. ty
wyoung
then query the new denormalised values.
mattmcc: Does this require setting up a celery results thingy?
or is there a better way to do this? (disable signal and save manually calculate values)?
mattmcc
I think the word 'value' may have been overloaded a bit in all that. Do you have an example?
jessamynsmith joined the channel
iiie has quit
iiie joined the channel
nikhil_ joined the channel
iiie has quit
jessamynsmith has quit
pupil has quit
wyoung
mattmcc: no, there is "denormalised values", "value changes that affects denormalised values / triggers signal", "value" (random value),
I also don't have an example yet, I am trying to construct this thing
ddiet has quit
SpeakerToMeat joined the channel
ironfroggy joined the channel
mattmcc
jonez: If you want to do something after the task has finished, there's the canvas. You can chain things together.
Hey, I’m getting an error in a long running script wrapped in an atomic block, “An error occurred in the current transaction. You can't execute queries until the end of the 'atomic' block.” Problem is I can’t see any errors anywhere. Any ideas how I can find it?
moldy has quit
moldy joined the channel
techquila joined the channel
jonez
greetings. I've found a few docs which populate a User FK on save.. I'd like to populate a drop-down with the current user
well, a user list, then the default selected item should be whomever is the current user.
azon has quit
therue joined the channel
ddiet joined the channel
javawolfpack has quit
iiie0 has quit
iiie1 has quit
AzMoo has quit
what is the proper way to extend Model?
XofP has quit
cyphase has quit
I see lots about extending User, but nothing yet about Model
mattmcc
User is a special case, because it's treated like an interface as well as an implementation.
telex has quit
What sort of behavior are you looking for?
cyphase joined the channel
zamro joined the channel
iiie1 joined the channel
iiie0 joined the channel
pyface joined the channel
gooby joined the channel
kuter has quit
zamro has quit
iiie joined the channel
kanja has quit
telex joined the channel
not_a_web_devbot joined the channel
kanja joined the channel
iiie has quit
tulioz joined the channel
sebastian-w_ has quit
sebastian-w joined the channel
pupil joined the channel
cyphase joined the channel
jonez
greetings :)
I changed my models.py to use a mixin. it adds some columns to the db, but not according to 'makemigrations'