Dynamic choices on a ForeignKey field

Posted by: barbara | Date: Jul 23, 2008 | Category: django | Comments: 4

One proviso before I get started - this example works with the old (as of a few days ago) version of admin, prior to the newforms-admin merge, where the models still use inner admin classes. I haven't started changing my current project to work with the merge, but as I ...

Read More

Newforms-admin

Posted by: barbara | Date: Jul 23, 2008 | Category: django | Comments: 0
I wish I could say I were more excited about yesterday's merge of the newforms-admin branch into the Django trunk. Of course, I think it's great - all those inner Admin classes in my models never really made sense as a way to hook models into the admin site. But ...

Read More

Waiting for Djangocon tickets

Posted by: barbara | Date: Jul 21, 2008 | Category: django djangocon 2008 | Comments: 0
Ugh - still no word on DjangoCon tickets, although the site is up and most of the schedule has been announced. Meanwhile, if you'd like to contribute to the Django Software Foundation, they've put up a donations page. Over the weekend, I came across this article - ...

Read More

More Django testing and debugging reference

Posted by: barbara | Date: Jul 17, 2008 | Category: django | Comments: 0
I was in unit testing hell today. my big stumbling block is working with the Test Client, using its login() method, to simulate a logged in user. The rest of the views I need to test for rely on the user being authenticated. I'm not going to go through all ...

Read More

DjangoCon!

Posted by: barbara | Date: Jul 16, 2008 | Category: django djangocon 2008 | Comments: 0
DjangoCon 2008 I'm holding out hope that I might actually get to go to this, if only because I live and work nearby. It's September 6-7, 2008, at the GooglePlex (and really, who doesn't want a peek inside the GooglePlex?). But if they're only opening it up to 200 ...

Read More