I'd put <tr id="form-0" data-a_action="{{ form.instance.a_action }}">
mp2146 joined the channel
Then, you can use $('#form-' + index).data('a_action') or something.
sydbarret
but 0 is only for the first row
agrawalritesh joined the channel
schinckel
Yeah, then you render that however it's currently rendered.
sydbarret
id could be the form.prefix
schinckel
{{ form.prefix }}
pathrocle joined the channel
BSLang joined the channel
sydbarret
ok let me try it
RCStef joined the channel
lolidunno has quit
lolidunno joined the channel
nazarewk joined the channel
mitaka joined the channel
arthurio has quit
k_sze[work] has quit
agrawalritesh has quit
sunil_bansal joined the channel
catonano has quit
agrawalritesh joined the channel
zeus1 joined the channel
NomadJim_ joined the channel
nazarewk has quit
aossama joined the channel
connor_goodwolf joined the channel
packi joined the channel
zeus1 has quit
nazarewk joined the channel
adsworth joined the channel
Guest89360 joined the channel
zeus1 joined the channel
matrixise joined the channel
maks25 has quit
michelem joined the channel
michelem
hello folks!
https://dpaste.de/T2Q1 <— any idea why the QuerySet at Line 19 returns records with non-empty notes?
k_sze[work] joined the channel
k_sze[work] has quit
k_sze[work] joined the channel
djapo has quit
usr123 joined the channel
usr123
Will django-guardian work if I have m2m with user model instead of foreign keys?
DodgeThis joined the channel
realnot joined the channel
Willis joined the channel
greg_f joined the channel
nix64bit joined the channel
robotme has quit
PaulWay[w]
OK, I feel stupid to ask this but: what do I do to initialise a database for Django?
I create the Postgres database, and then do './manage.py migrate' and it complains that a table doesn't exist.
dodobas joined the channel
jtiai
PaulWay[w]: sounds like you're missing some migrations...
apollo13
PaulWay[w]: which project?
and please do not say awx
C0r3 joined the channel
PaulWay[w]
Heh
Not sure what you mean though; even if I give the project name (api) it fails because the table doesn't exist.
s/give the/give migrate the/
apollo13
PaulWay[w]: no, I just looked at your redhat affiliation and I know that ansible awx/tower has non working migrations
either way, run migrate and put the full output into a pastebin
(dpaste.de)
PaulWay[w]
apollo13: Hah :-)
C0r3
I've a set of JSON data which I'm passing to my serializer. The JSON data contains a float field where as my system assumes it to be an integer. How do I convert the datatype before loading it to serializer?