Admin ignores null=True in ForeignKey

2011-01-10 Thread David Walker
If I create a ForeignKey relationship between two Models with null=True, the Admin seems to still insist on there being a foreign object to link to. For example, I created a very simple ForeignKey relationship from Things to Types: from django.db import models class Type(models.Model): name =

Localisation

2011-01-15 Thread David Walker
Despite reading round and round in circles in the documentation, I am completely baffled about localisation and how it works. I am not trying to do any translation yet, but want to code money and date formats right so that I don't have to rewrite things later. It isn't even clear to me which loca

Re: to iterate over two lists simultaneously in *.html

2011-01-16 Thread David Walker
As masklinn says, zip: http://docs.python.org/library/functions.html#zip Combine the two lists in python into one list of pairs (tuples). change the render_to_response line to: render_to_response(filter_obj.html', {'zipped': zip(obj1, obj2), 'q':query}) zip discards any elements that are left over

Re: Localisation

2011-01-18 Thread David Walker
documentation? or taking part in discussions? Cheers, Dave On Jan 17, 4:39 am, Lachlan Musicman wrote: > On Sun, Jan 16, 2011 at 04:23, David Walker wrote: > > Despite reading round and round in circles in the documentation, I am > > completely baffled aboutlocalisationand how