Skip to content

KACAH/django-compositekey

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

== Django Composite Key
 * Simone Federici <[email protected]> 

=== 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)

About

Django Composite Multiple PrimaryKey

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%