Metadata-Version: 1.1
Name: django-proxy-overrides
Version: 0.2.1
Summary: Overridable foreign key fields for Proxy models
Home-page: https://github.com/datamade/django-proxy-overrides
Author: Forest Gregg
Author-email: fgregg@datamade.us
License: UNKNOWN
Description-Content-Type: UNKNOWN
Description: Allow overriding foreign key fields on Proxy models.
        
        Mostly, you won't want to do this. However, I did have a situation where it would
        be useful, mainly for reducing the numbers of queries I was having to run.
        
        You can read about it at: http://schinckel.net/2015/05/13/django-proxy-model-relations/
        
        
        Usage is pretty simple:
        
        .. code-block :: python
        
            from proxy_overrides.related import ProxyForeignKey
        
            class ProxyModel(ParentModel):
                related = ProxyForeignKey(OtherProxyModel)
        
        You may only override fields that exist, although in the future, it may be possible to create a relation with a different name (enabling you to keep the standard relation to the non-proxy model).
        
        You may also only override with a compatible field (and only one proxy model may point to any other given proxy model).
        
        
        It is also possible to override non-related models, but I'm not that interested in that use case at the moment.
        
Platform: UNKNOWN
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Framework :: Django
Classifier: Topic :: Software Development :: Libraries :: Python Modules
