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 =
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
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
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
4 matches
Mail list logo