From eee5dda5ba9d9ff9b7b460ad7a90e23d4bfd4000 Mon Sep 17 00:00:00 2001 From: Ben Konrath Date: Mon, 10 Dec 2012 15:41:45 +0100 Subject: [PATCH 1/2] Small admin documentation fix. --- DOCS.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DOCS.rst b/DOCS.rst index d0974e0..4997ace 100644 --- a/DOCS.rst +++ b/DOCS.rst @@ -239,7 +239,7 @@ Example child_models = ( (ModelB, ModelBAdmin), (ModelC, ModelCAdmin), - } + ) # Only the parent needs to be registered: admin.site.register(ModelA, ModelAParentAdmin) From e5eaaa987c4ea2d0077a88f67eaefd958b953c89 Mon Sep 17 00:00:00 2001 From: Ben Konrath Date: Mon, 10 Dec 2012 18:02:12 +0100 Subject: [PATCH 2/2] Include templates in install. --- MANIFEST.in | 2 +- setup.py | 20 ++++++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index bcadbb7..25899f9 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,4 +2,4 @@ include README.rst include LICENSE include DOCS.rst include CHANGES.rst -recursive-include polymorphic/templates/ *.html +recursive-include polymorphic/templates * diff --git a/setup.py b/setup.py index 7beb24f..9e343d2 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,26 @@ -from distutils.core import setup +from setuptools import setup, find_packages setup( name = 'django_polymorphic', version = '0.2', description = 'Seamless Polymorphic Inheritance for Django Models', + url = 'https://github.com/chrisglass/django_polymorphic', + author = 'Bert Constantin', author_email = 'bert.constantin@gmx.de', + maintainer = 'Christopher Glass', maintainer_email = 'tribaal@gmail.com', - url = 'https://github.com/chrisglass/django_polymorphic', - packages = [ - 'polymorphic', - 'polymorphic.templatetags', - ], + + packages = find_packages(), + package_data = { + 'polymorphic': [ + 'templates/admin/polymorphic/*.html', + ], + }, + + install_requires=['setuptools'], + classifiers=[ 'Framework :: Django', 'Intended Audience :: Developers',