haven't committed in a while oops. A fuck-ton of HTML stuff
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
Main authors (commit rights to the main repository)
|
||||
===================================================
|
||||
|
||||
* Chris Glass
|
||||
* Diederik van der Boor
|
||||
* Charlie Denton
|
||||
* Jerome Leclanche
|
||||
|
||||
|
||||
Contributors
|
||||
=============
|
||||
|
||||
* Abel Daniel
|
||||
* Adam Chainz
|
||||
* Adam Wentz
|
||||
* Andrew Ingram (contributed setup.py)
|
||||
* Al Johri
|
||||
* Alex Alvarez
|
||||
* Andrew Dodd
|
||||
* Angel Velasquez
|
||||
* Austin Matsick
|
||||
* Ben Konrath
|
||||
* Bert Constantin
|
||||
* Bertrand Bordage
|
||||
* Chad Shryock
|
||||
* Charles Leifer (python 2.4 compatibility)
|
||||
* Chris Barna
|
||||
* Chris Brantley
|
||||
* Christopher Glass
|
||||
* David Sanders
|
||||
* Éric Araujo
|
||||
* Evan Borgstrom
|
||||
* Frankie Dintino
|
||||
* Gavin Wahl
|
||||
* Germán M. Bravo
|
||||
* Gonzalo Bustos
|
||||
* Gregory Avery-Weir
|
||||
* Hugo Osvaldo Barrera
|
||||
* Jacob Rief
|
||||
* James Murty
|
||||
* Jedediah Smith (proxy models support)
|
||||
* John Furr
|
||||
* Jonas Haag
|
||||
* Jonas Obrist
|
||||
* Julian Wachholz
|
||||
* Kamil Bar
|
||||
* Kelsey Gilmore-Innis
|
||||
* Kevin Armenat
|
||||
* Krzysztof Gromadzki
|
||||
* Krzysztof Nazarewski
|
||||
* Luis Zárate
|
||||
* Marius Lueck
|
||||
* Martin Brochhaus
|
||||
* Martin Maillard
|
||||
* Michael Fladischer
|
||||
* Nick Ward
|
||||
* Oleg Myltsyn
|
||||
* Omer Strumpf
|
||||
* Paweł Adamczak
|
||||
* Petr Dlouhý
|
||||
* Sander van Leeuwen
|
||||
* Sobolev Nikita
|
||||
* Tadas Dailyda
|
||||
* Tai Lee
|
||||
* Tomas Peterka
|
||||
* Tony Narlock
|
||||
* Vail Gold
|
||||
|
||||
|
||||
|
||||
Former authors / maintainers
|
||||
============================
|
||||
|
||||
* Bert Constantin 2009/2010 (Original author, disappeared from the internet :( )
|
||||
@@ -0,0 +1 @@
|
||||
pip
|
||||
@@ -0,0 +1,32 @@
|
||||
Copyright (c) 2009 or later by the individual contributors.
|
||||
Please see the AUTHORS file.
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
|
||||
* The names of the contributors may not be used to endorse or
|
||||
promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -0,0 +1,115 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: django-polymorphic
|
||||
Version: 2.1.2
|
||||
Summary: Seamless polymorphic inheritance for Django models
|
||||
Home-page: https://github.com/django-polymorphic/django-polymorphic
|
||||
Author: Bert Constantin
|
||||
Author-email: bert.constantin@gmx.de
|
||||
Maintainer: Christopher Glass
|
||||
Maintainer-email: tribaal@gmail.com
|
||||
License: UNKNOWN
|
||||
Download-URL: https://github.com/django-polymorphic/django-polymorphic/tarball/master
|
||||
Keywords: django,polymorphic
|
||||
Platform: UNKNOWN
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Environment :: Web Environment
|
||||
Classifier: Framework :: Django
|
||||
Classifier: Framework :: Django :: 1.11
|
||||
Classifier: Framework :: Django :: 2.0
|
||||
Classifier: Framework :: Django :: 2.1
|
||||
Classifier: Framework :: Django :: 2.2
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: License :: OSI Approved :: BSD License
|
||||
Classifier: Operating System :: OS Independent
|
||||
Classifier: Programming Language :: Python :: 2.7
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3.5
|
||||
Classifier: Programming Language :: Python :: 3.6
|
||||
Classifier: Programming Language :: Python :: 3.7
|
||||
Classifier: Topic :: Database
|
||||
Requires-Dist: Django (>=1.11)
|
||||
|
||||
.. image:: https://travis-ci.org/django-polymorphic/django-polymorphic.svg?branch=master
|
||||
:target: http://travis-ci.org/django-polymorphic/django-polymorphic
|
||||
.. image:: https://img.shields.io/pypi/v/django-polymorphic.svg
|
||||
:target: https://pypi.python.org/pypi/django-polymorphic/
|
||||
.. image:: https://img.shields.io/codecov/c/github/django-polymorphic/django-polymorphic/master.svg
|
||||
:target: https://codecov.io/github/django-polymorphic/django-polymorphic?branch=master
|
||||
.. image:: https://readthedocs.org/projects/django-polymorphic/badge/?version=stable
|
||||
:target: https://django-polymorphic.readthedocs.io/en/stable/
|
||||
|
||||
Polymorphic Models for Django
|
||||
=============================
|
||||
|
||||
Django-polymorphic simplifies using inherited models in Django projects.
|
||||
When a query is made at the base model, the inherited model classes are returned.
|
||||
|
||||
When we store models that inherit from a ``Project`` model...
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
>>> Project.objects.create(topic="Department Party")
|
||||
>>> ArtProject.objects.create(topic="Painting with Tim", artist="T. Turner")
|
||||
>>> ResearchProject.objects.create(topic="Swallow Aerodynamics", supervisor="Dr. Winter")
|
||||
|
||||
...and want to retrieve all our projects, the subclassed models are returned!
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
>>> Project.objects.all()
|
||||
[ <Project: id 1, topic "Department Party">,
|
||||
<ArtProject: id 2, topic "Painting with Tim", artist "T. Turner">,
|
||||
<ResearchProject: id 3, topic "Swallow Aerodynamics", supervisor "Dr. Winter"> ]
|
||||
|
||||
Using vanilla Django, we get the base class objects, which is rarely what we wanted:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
>>> Project.objects.all()
|
||||
[ <Project: id 1, topic "Department Party">,
|
||||
<Project: id 2, topic "Painting with Tim">,
|
||||
<Project: id 3, topic "Swallow Aerodynamics"> ]
|
||||
|
||||
This also works when the polymorphic model is accessed via
|
||||
ForeignKeys, ManyToManyFields or OneToOneFields.
|
||||
|
||||
Features
|
||||
--------
|
||||
|
||||
* Full admin integration.
|
||||
* ORM integration:
|
||||
|
||||
* support for ForeignKey, ManyToManyField, OneToOneField descriptors.
|
||||
* Filtering/ordering of inherited models (``ArtProject___artist``).
|
||||
* Filtering model types: ``instance_of(...)`` and ``not_instance_of(...)``
|
||||
* Combining querysets of different models (``qs3 = qs1 | qs2``)
|
||||
* Support for custom user-defined managers.
|
||||
* Uses the minumum amount of queries needed to fetch the inherited models.
|
||||
* Disabling polymorphic behavior when needed.
|
||||
|
||||
While *django-polymorphic* makes subclassed models easy to use in Django,
|
||||
we still encourage to use them with caution. Each subclassed model will require
|
||||
Django to perform an ``INNER JOIN`` to fetch the model fields from the database.
|
||||
While taking this in mind, there are valid reasons for using subclassed models.
|
||||
That's what this library is designed for!
|
||||
|
||||
The current release of *django-polymorphic* supports Django 1.11, 2.0, 2.1, 2.2 and Python 2.7 and 3.5+ is supported.
|
||||
For older Django versions, install *django-polymorphic==1.3*.
|
||||
|
||||
For more information, see the `documentation at Read the Docs <https://django-polymorphic.readthedocs.io/>`_.
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
Install using ``pip``\ ...
|
||||
|
||||
.. code:: bash
|
||||
|
||||
$ pip install django-polymorphic
|
||||
|
||||
License
|
||||
=======
|
||||
|
||||
Django-polymorphic uses the same license as Django (BSD-like).
|
||||
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
django_polymorphic-2.1.2.dist-info/AUTHORS.rst,sha256=c53Mk_y783gPflNMYmWIxJNJVgqd_iry3njjwruQkBM,1318
|
||||
django_polymorphic-2.1.2.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
django_polymorphic-2.1.2.dist-info/LICENSE,sha256=ytx-RbmsZDzs1srmPx9FaEFl39W1i7lUK5GPGM1H1VE,1571
|
||||
django_polymorphic-2.1.2.dist-info/METADATA,sha256=Shl0gSzVRSkQMMr4uhqVC0EMWkjl1mxRJHN_b51OdjY,4493
|
||||
django_polymorphic-2.1.2.dist-info/RECORD,,
|
||||
django_polymorphic-2.1.2.dist-info/WHEEL,sha256=h_aVn5OB2IERUjMbi2pucmR_zzWJtk303YXvhh60NJ8,110
|
||||
django_polymorphic-2.1.2.dist-info/top_level.txt,sha256=xxMuTi2Xsi-PV5ovvJoCMkUWdX8h8-tO-cmQGoulejA,12
|
||||
polymorphic/__init__.py,sha256=YHXdgvJrZpcbbeETeXFg16v6AKA9_c1SLt-L7lonxSE,426
|
||||
polymorphic/__pycache__/__init__.cpython-38.pyc,,
|
||||
polymorphic/__pycache__/base.cpython-38.pyc,,
|
||||
polymorphic/__pycache__/compat.cpython-38.pyc,,
|
||||
polymorphic/__pycache__/managers.cpython-38.pyc,,
|
||||
polymorphic/__pycache__/models.cpython-38.pyc,,
|
||||
polymorphic/__pycache__/query.cpython-38.pyc,,
|
||||
polymorphic/__pycache__/query_translate.cpython-38.pyc,,
|
||||
polymorphic/__pycache__/showfields.cpython-38.pyc,,
|
||||
polymorphic/__pycache__/utils.cpython-38.pyc,,
|
||||
polymorphic/admin/__init__.py,sha256=krwQsb4lM9wXC-qL7L4klgVUKsW_uEgTyPuFqOh2byA,1458
|
||||
polymorphic/admin/__pycache__/__init__.cpython-38.pyc,,
|
||||
polymorphic/admin/__pycache__/childadmin.cpython-38.pyc,,
|
||||
polymorphic/admin/__pycache__/filters.cpython-38.pyc,,
|
||||
polymorphic/admin/__pycache__/forms.cpython-38.pyc,,
|
||||
polymorphic/admin/__pycache__/generic.cpython-38.pyc,,
|
||||
polymorphic/admin/__pycache__/helpers.cpython-38.pyc,,
|
||||
polymorphic/admin/__pycache__/inlines.cpython-38.pyc,,
|
||||
polymorphic/admin/__pycache__/parentadmin.cpython-38.pyc,,
|
||||
polymorphic/admin/childadmin.py,sha256=2HRhCO_5HPGGURzCaGLou5gtq6M2LZ5fa5OyBkYsSqY,9971
|
||||
polymorphic/admin/filters.py,sha256=GxC28qm_K5XY-Cj34_IOQ4uwKSo3ZwoVpgVbb-Ku6nA,1230
|
||||
polymorphic/admin/forms.py,sha256=s-uNTjDjhNAXllTKyPIIhB_HM6bNM4vd5HarK1EWg2Y,717
|
||||
polymorphic/admin/generic.py,sha256=xt9PcgDG53XP4qYwbf5Eff9yh07_BLcuxf8-b0HUXPs,2684
|
||||
polymorphic/admin/helpers.py,sha256=de_YUBmLl-qGPNy5Y4iuxxfado4bfx4U1P1B4bWHQW0,5764
|
||||
polymorphic/admin/inlines.py,sha256=Otn49x7Iu_rWBGuBQDUrF5wHJ1fI9A5U9rzg_O83SDQ,10632
|
||||
polymorphic/admin/parentadmin.py,sha256=XD8kmk-As42tlZxAcAVyTI9UR5atADVqgQyzeZJvkso,15830
|
||||
polymorphic/base.py,sha256=J6rfZgARe_mM8Aka3zv_j9_roGmxig-C8IODi2XrjWI,9177
|
||||
polymorphic/compat.py,sha256=yTkkkM_tBzLKfTUIN_xMltcbEO2jbyQIQiXYyLVOmpk,1268
|
||||
polymorphic/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
polymorphic/contrib/__pycache__/__init__.cpython-38.pyc,,
|
||||
polymorphic/contrib/__pycache__/extra_views.cpython-38.pyc,,
|
||||
polymorphic/contrib/__pycache__/guardian.cpython-38.pyc,,
|
||||
polymorphic/contrib/extra_views.py,sha256=R-IimQuO2lzhiLEbjZ3gU0HcLwi1puzFe_OPEhe20wo,4149
|
||||
polymorphic/contrib/guardian.py,sha256=SdMHwBvTeadXKH3LQULZikOm57Ep7RzYkSJNuak9HKU,1339
|
||||
polymorphic/formsets/__init__.py,sha256=L7N002YJ0cyiYzVYcnfnOafnfjsPJbUJrV4qWSlcAlU,1391
|
||||
polymorphic/formsets/__pycache__/__init__.cpython-38.pyc,,
|
||||
polymorphic/formsets/__pycache__/generic.cpython-38.pyc,,
|
||||
polymorphic/formsets/__pycache__/models.cpython-38.pyc,,
|
||||
polymorphic/formsets/__pycache__/utils.cpython-38.pyc,,
|
||||
polymorphic/formsets/generic.py,sha256=CKxe1sCCXyyCgQyBaPI0ykeEQzM4U1zfPRFkzbftqo0,4308
|
||||
polymorphic/formsets/models.py,sha256=RuF1aDTQU5W8EXf_LScUlALKAOd0um1tSEDxGgK6CNU,15528
|
||||
polymorphic/formsets/utils.py,sha256=tbeXzywmXb3GE7ofmPQuW4H46yUTo639Fr5yH6dXZf0,506
|
||||
polymorphic/locale/en/LC_MESSAGES/django.po,sha256=SvbpsHUL02r6xjgDaLB02O9057o8v5AvMnaH2vKQX5c,711
|
||||
polymorphic/locale/es/LC_MESSAGES/django.po,sha256=dDAh0LBgWqwoZkeGKKgPFjfI9B--LM37ZWjvmRArEfY,754
|
||||
polymorphic/locale/fr/LC_MESSAGES/django.po,sha256=XYn4FlF6XVYvgcxqfLjISO2h8opk5HJpPduLPFJrEIY,889
|
||||
polymorphic/managers.py,sha256=JVRQ5t9xlATM_l25AwbBCS0m0ZAXbj2twVgNvFBShvg,1703
|
||||
polymorphic/models.py,sha256=2idJ3Rw9frxIMtMBBYyM_Mne6uuAgyptkTT-S_876Ho,11571
|
||||
polymorphic/query.py,sha256=PV71zWRaYWjUCwU5eajuua5bTsW3T5xSxSleDEFh4ms,22650
|
||||
polymorphic/query_translate.py,sha256=FxGDWPSaF4FuRgM-ombfZfyN3J8muYnbKirhsDBLoW8,11365
|
||||
polymorphic/showfields.py,sha256=IntwIFGmi3DWOnCDnD-QIzbiKyHS4wcb6Z28rZx5DdI,6407
|
||||
polymorphic/static/polymorphic/css/polymorphic_inlines.css,sha256=Wk9FaeCedIpRMn2QllZuzT8HDQrpLxKyf84XIA55Kd4,560
|
||||
polymorphic/static/polymorphic/js/polymorphic_inlines.js,sha256=NNHyyi2SQdeJ6sEYP1iN0W3xpNmN5b5VdeWCAO2TWW0,15521
|
||||
polymorphic/templates/admin/polymorphic/add_type_form.html,sha256=apbNTko9uauGkS-zVFanZ4ISNT4yPnePYROo0c-0wp8,291
|
||||
polymorphic/templates/admin/polymorphic/change_form.html,sha256=OcXpPDD6NxBKN0p1JVvW1NnRSesM19a_aL5cBr9aJDA,190
|
||||
polymorphic/templates/admin/polymorphic/delete_confirmation.html,sha256=NViKgTfac5yf1uA0oy7ACh-v9VDU3lBZ-9dYwmXz_cw,198
|
||||
polymorphic/templates/admin/polymorphic/edit_inline/stacked.html,sha256=SQsWCL59Ew8TVp_Io6ZiezETh1idQIMwPjChS9M0pdc,2379
|
||||
polymorphic/templates/admin/polymorphic/object_history.html,sha256=hU66_oJ1L1Nx9_gW0oOOBTAfdkikKx9c69VAigUCAq0,193
|
||||
polymorphic/templatetags/__init__.py,sha256=V_qwuTdJVgYHdfZI0hKMjsTk792tO1usmGQIp5l7fIg,2880
|
||||
polymorphic/templatetags/__pycache__/__init__.cpython-38.pyc,,
|
||||
polymorphic/templatetags/__pycache__/polymorphic_admin_tags.cpython-38.pyc,,
|
||||
polymorphic/templatetags/__pycache__/polymorphic_formset_tags.cpython-38.pyc,,
|
||||
polymorphic/templatetags/polymorphic_admin_tags.py,sha256=9KpcSIbUC09hb2fVMz9iqpl-48cjxpOkYAOLgwbA6og,1791
|
||||
polymorphic/templatetags/polymorphic_formset_tags.py,sha256=ghvvdPNmJ5MaeRUBFaKltMBmGeoDiD4TO0_tDH4LM60,2139
|
||||
polymorphic/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
polymorphic/tests/__pycache__/__init__.cpython-38.pyc,,
|
||||
polymorphic/tests/__pycache__/test_admin.cpython-38.pyc,,
|
||||
polymorphic/tests/__pycache__/test_multidb.cpython-38.pyc,,
|
||||
polymorphic/tests/__pycache__/test_orm.cpython-38.pyc,,
|
||||
polymorphic/tests/__pycache__/test_regression.cpython-38.pyc,,
|
||||
polymorphic/tests/__pycache__/test_utils.cpython-38.pyc,,
|
||||
polymorphic/tests/migrations/0001_initial.py,sha256=E02Z71CqGCDS4YbTsaM8LRpcKh29gAGq3NaYA_-xrxQ,73822
|
||||
polymorphic/tests/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
polymorphic/tests/migrations/__pycache__/0001_initial.cpython-38.pyc,,
|
||||
polymorphic/tests/migrations/__pycache__/__init__.cpython-38.pyc,,
|
||||
polymorphic/tests/test_admin.py,sha256=LhBmC3xkCk4CgOAAoXgLoqw0cPHiToz8-qY2hOc9gcM,4799
|
||||
polymorphic/tests/test_multidb.py,sha256=4xrGbH3TPChXhKgEDLlG9gNpgDxpnJ9-axlltVti0BU,4749
|
||||
polymorphic/tests/test_orm.py,sha256=yqzLAMMYb8o_jC4akHYn6bANaT4Ju3zx8Np7zd738xY,48950
|
||||
polymorphic/tests/test_regression.py,sha256=Y-7Q95nbMLctQPiONkA5iaraRLayAi-fmDi2xrh9caI,907
|
||||
polymorphic/tests/test_utils.py,sha256=C6Jp1MTv4mJ_4q0YjFE9Ri9qpPIOM-21nGGcWyse818,2693
|
||||
polymorphic/utils.py,sha256=PU-gG9k-YLJ6KPwqOtsh_YgJ4P9gsFph2IiHi2--aPo,2461
|
||||
@@ -0,0 +1,6 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: bdist_wheel (0.33.4)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py2-none-any
|
||||
Tag: py3-none-any
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
polymorphic
|
||||
Reference in New Issue
Block a user