Metadata-Version: 2.1
Name: django-model-decoupler
Version: 0.0.2
Summary: A model decoupler for Django
Home-page: https://github.com/genadijrazdorov/django-model-decoupler
Author: Genadij Razdorov
Author-email: genadijrazdorov@gmail.com
License: MIT
Project-URL: Bug Tracker, https://github.com/genadijrazdorov/django-model-decoupler/issues
Description: # Django model decoupler
        
        django-model-decoupler enables simplification of development and separation of
        business logic from presentation and data persistence in Django web framework.
        
        
        ## Install
        
        With pipenv:
        
        ~~~
        $ pipenv install django-model-decoupler
        
        ~~~
        
        or with pip:
        
        ~~~
        $ python -m pip install django-model-decoupler
        
        ~~~
        
        
        ## Quick start
        
        1. Add "model_decoupler" to your INSTALLED_APPS setting like this::
        
            ~~~python
            INSTALLED_APPS = [
                ...
                'model_decoupler',
            ]
            ~~~
        
        2. Change your models to inherit from `model_decoupler.Model`:
        
            ~~~python
            from django.db import models
            import decoupler
            from pure_python_module import PurePythonClass
        
            class MyModel(decoupler.Model, adaptee=PurePythonClass):
        	    attr1 = models.Field(...)
        	    ...
        
            ~~~
        
        3. Your changed MyModel should be able to act proxy to PurePythonClass from
            now.
        
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
