Metadata-Version: 1.0
Name: django-compositepk
Version: 1.0
Summary: Provides a base model with rudimentary composite PK abilities.
Home-page: http://bitbucket.org/smileychris/django-compositepk/
Author: Chris Beaven
Author-email: smileychris@gmail.com
License: UNKNOWN
Description: ==================
        django-compositepk
        ==================
        
        A Django application that provides a ``CompositePKModel``, allowing for basic
        retrieval and saving of models with composite keys.
        
        It is limited to the above tasks, and any use of the model past this is not
        guaranteed to work.
        
        
        Example usage
        =============
        
        A model with composite PK should look something like this::
        
        from composite_pk import composite
        
        class Lot(composite.CompositePKModel):
        auction = models.ForeignKey(Auction, primary_key=True)
        lot_number = models.IntegerField(primary_key=True)
        objects = composite.CompositePKManager()
        
        So it must:
        
        * subclass the ``CompositePKModel``,
        
        * have two or more fields which set the ``primary_key`` attribute to True,
        and
        
        * use the ``CompositePKManager`` as the initial manager.
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Framework :: Django
