== Django Composite Key * Simone Federici <s.federici@gmail.com> === Links: * https://github.com/simone/django-compositekey/ * https://github.com/simone/django-compositekey/wiki * http://pypi.python.org/pypi/django-compositekey/ === Sample from django.db import models from compositekey import db class Book(models.Model): id = db.MultiFieldPK("author", "name") name = models.CharField(max_length=100) author = models.CharField(max_length=100) def __unicode__(self): return u"%s (by %s)" % (self.name, self.author)