Overriding queryset for inline admin

2013-04-12 Thread Patrick Craston
Hi list I'm having some trouble overriding the queryset for my inline admin. Here's a bog-standard parent admin and inline admin: class MyInlineAdmin(admin.TabularInline): model = MyInlineModel def queryset(self, request): qs = super(MyInlineAdmin, self).queryset(request)

RE: PostgresSQL or MySql with django?

2013-03-21 Thread Patrick Craston
I googled for an easy solution, but could not find anything except dbconvert for 100.00 On Wednesday, March 20, 2013 10:20:19 AM UTC-4, Patrick Craston wrote: Alternatively, I've found this tool works very well: https://pypi.python.org/pypi/py-mysql2pgsql (only thing to look out for

RE: PostgresSQL or MySql with django?

2013-03-20 Thread Patrick Craston
Alternatively, I've found this tool works very well: https://pypi.python.org/pypi/py-mysql2pgsql (only thing to look out for are Django IPAddressFields as they are char(15) fields in MySQL and inet fields in Postgres - py-mysql2pgsql is obviously not aware of this) HTH Patrick -Original