Skip to content
simone edited this page Nov 5, 2011 · 17 revisions

SEMPLICITY

from compositekey import db
class Blog(models.Model:
    id = db.MultipleFieldPrimaryKey(fields=["title", "author"])
    title = models.CharField(max_length=100)
    author = models.CharField(max_length=100)

FEATURES

  • Django Query API (filters and exclude)
  • Standard ForeignKey API (OneToOne and ManyToMany)
  • Automatical Related Objects
  • Forms integration
  • Admin (no admin patch required)

REQUIREMENTS

  • Django 1.4-beta or Trunk

KNOWS ISSUES

  • Generation of the schema -> low priority when you have an embedded database
Clone this wiki locally