cprofitt | AlanBell: are you around? | 01:12 |
---|---|---|
AlanBell | o/ | 06:59 |
mhall119 | daker: try naming the function get_urls, instead of urls | 12:32 |
daker | mhall119, oh i see | 12:46 |
daker | i'll try it | 12:46 |
daker | mhall119, it does not work http://pastebin.com/Ar7LBhdN | 13:04 |
mhall119 | okay, I'll have to read the Admin documentation then | 13:06 |
mhall119 | why are you making 2 calls to super.get_urls? | 13:10 |
mhall119 | also, I don't think you need to specify the urls property, it looks like the ModelAdmin already has that | 13:12 |
mhall119 | but that shouldn't cause problems either | 13:12 |
mhall119 | oh wait a second | 13:13 |
mhall119 | I think I see the problem | 13:13 |
mhall119 | you're passing self.list_pages as the view function | 13:14 |
mhall119 | but Django is going to treat it as a regular function, not an instance method | 13:14 |
mhall119 | daker: you just want to over-write the list view? | 13:19 |
daker | mhall119, yes | 13:19 |
mhall119 | then just have your model implement changelist_view | 13:20 |
mhall119 | in that call super.changelist_view | 13:20 |
mhall119 | then you shouldn't have to mess with urls at all | 13:20 |
daker | i see i'll try | 13:21 |
daker | mhall119, if i add a __call__ func it works http://pastebin.com/F8eJAYnF | 13:23 |
daker | Woo got it http://pastebin.com/1LmjFpmG | 13:32 |
mhall119 | well, yeah I guess that would work too | 13:58 |
daker | ツ | 13:59 |
daker | thanks for your time | 13:59 |
locodir-user | hello | 14:12 |
=== daker_ is now known as daker | ||
nigelb | Hey folks :) | 15:20 |
mhall119 | morning | 15:23 |
nigelb | mhall119: Now I understand why I didn't get what you meant last night --> sleep deprivation | 15:26 |
daker | mhall119, do you know any working threaded comment system in django ? | 15:31 |
mhall119 | nigelb: yeah, sleep deprivation makes coding...interesting | 15:52 |
mhall119 | it also makes for amusing comments | 15:52 |
mhall119 | daker: I don't know about threaded, but there's a default django comments system isn't there? | 15:52 |
nigelb | mhall119: ;) | 15:55 |
TrickyJ | Good morning friends :) | 16:39 |
Ronnie | about bug https://bugs.launchpad.net/loco-directory/+bug/686268 is this about the comments added to agenda items> | 19:49 |
ubot4 | Launchpad bug 686268 in loco-directory "Add the ability to add agenda items (affects: 1) (heat: 5)" [Wishlist,In progress] | 19:50 |
Ronnie | daker, cjohnston, mhall119: ^ | 19:52 |
Ronnie | its not clear what need to be fixed in order to commit this bug | 19:52 |
daker | AFAIK the backend is already implemented | 19:53 |
mhall119 | Ronnie: right now there is no interface for adding agenda items | 19:54 |
mhall119 | that's what the bug is for | 19:54 |
Ronnie | mhall119: agenda != meeting/event ? | 19:55 |
mhall119 | there is (ugly) code for displaying them | 19:55 |
mhall119 | Ronnie: a meeting has multiple agenda items | 19:55 |
Ronnie | aha | 19:55 |
mhall119 | agenda items can be nested too, so each meeting has a tree of agenda items | 19:56 |
AlanBell | o/ Daviey | 21:03 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!