semvec/pypi-packages huggingface dataset:
django-abstract-related-model 0.1.1
Workaround for related abstract models issue.
License: MIT

Django Abstract Related Model
=============================

|Build Status|
==============

In django a related model can't be abstract because of db issues. This module offers a workaround, pratically it doesn't declare the abstract, just avoid it of being created on database, but allow the children. Database creation is needed so you can create relationships.

Installing
----------

.. code:: bash

    $ pip3 install django-abstract-related-model

and add `abstract_related_model` to INSTALLED_APPS.

Using
-----

.. code:: python

    from abstract_related_model.models import AbstractRelatedModel

    class ExampleAbstractRelatedModel(AbstractRelatedModel):
        pass


Running tests
-------------

Go into example folder

.. code:: bash

    $ cd example

and run them

.. code:: bash

    $ ./manage.py test

Troubleshooting
---------------

Check the example folder if you have any doubts. Or you can create an
issue.


.. |Build Status| image:: https://travis-ci.org/icaropires/django-abstract-related-model.svg?branch=master
django-singleton-model 0.2.3
Simple package for impleting models using singleton design pattern
License: MIT

Django Singleton Model
======================

|Build Status|
==============

Singleton design-pattern implementation for using with django models and
works with more recent versions of django

Installing
----------

Install the package

.. code:: bash

    $ pip3 install django-singleton-model

and that's it. Don't add it to INSTALLED\_APPS.

Using
-----

Import the SingletonModel class and inherit from it

.. code:: python

    from singleton_model import SingletonModel

    class MySingleModel(SingletonModel):
        pass


Running tests
-------------

Go into example folder

.. code:: bash

    $ cd example

and run them

.. code:: bash

    $ ./manage.py test

Troubleshooting
---------------

Check the example folder if you have any doubts. Or you can create an
issue.

.. |Build Status| image:: https://travis-ci.org/icaropires/django-singleton-model.svg?branch=master