jono | mhall119, not sure if you are online | 00:32 |
---|---|---|
jono | but if you are, any idea about http://stackoverflow.com/questions/14063023/how-can-i-display-items-on-django-form-based-on-data-in-a-table ? | 00:32 |
mhall119 | jono: it looks like you'd need to use formsets and some custom template programming | 00:48 |
mhall119 | the formset will let you make multiple Temp forms, and the custom template programming is needed to make the food field a label instead of a form element | 00:51 |
mhall119 | this is one of those areas where you'll be straying from the "super easy" path that Django provides | 00:51 |
mhall119 | jono: also, I love that the guy on stackoverflow is accusing you of cheating on your homework :) | 01:03 |
mhall119 | I'm so tempted to add a comment pretending to be your professor :) | 01:03 |
popey | oh that's brilliant | 01:15 |
bkerensa | I'm certain in another life mhall119 was a Phd in Political Science with a love for botany :) | 01:30 |
jono | mhall119, lol | 01:31 |
jono | thanks mhall119 | 01:31 |
mhall119 | jono: np, good luck | 01:33 |
mhall119 | bkerensa: I'm sure I'd get kicked out of any poli-sci program for arguing too much | 01:33 |
bkerensa | :D | 01:34 |
jono | mhall119, thanks | 01:47 |
jono | so based on the problem do you think I need to manually generate the form by iterating through the data? | 01:47 |
mhall119 | jono: I think you can make a TempFormSet, and give it a list of Temp objects, one for each of your Food records for your cook | 02:22 |
mhall119 | https://docs.djangoproject.com/en/dev/topics/forms/formsets/ for more info | 02:22 |
jono | mhall119, yeah, reading through formsets | 02:22 |
jono | thanks mhall119 | 02:26 |
jono | still need to figure this out | 02:26 |
jono | gotta run | 02:26 |
bkerensa | looks like Linus gave a Redhat Kernel Maintainer a ear full https://lkml.org/lkml/2012/12/23/75 | 02:39 |
bkerensa | :s | 02:39 |
mhall119 | that seems a bit harsh | 02:42 |
mhall119 | and by a bit I mean overly and unreasonably | 02:42 |
=== hggdh_ is now known as hggdh | ||
jussi | its a little harsh, but still, he does have some valid points, even if he is rather, err, blunt... | 06:31 |
bkerensa | jussi: he does it a lot from what I gather | 07:27 |
mhall119 | w 41 | 15:03 |
marcoceppi | idk, he does have a point. Maybe being blunt was the way to best way to get those across? | 15:34 |
mhall119 | there's a difference between being blunt and being mean | 15:38 |
mhall119 | usually when caps-lock profanity comes into play, you've crossed that line | 15:38 |
cjohnston | It wasn't caps-lock, it was a stuck shift key :-P | 15:39 |
=== jono is now known as Guest85130 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!