From cffbd8534e7f0a4e1b2e3d17857055a781f149e0 Mon Sep 17 00:00:00 2001 From: Brandon Taylor Date: Thu, 28 Feb 2013 22:07:16 -0500 Subject: [PATCH] Working on updating documentation and sample project --- AUTHORS | 2 +- COPYRIGHT | 4 ++-- README => README.md | 1 - adminsortable/__init__.py | 2 +- adminsortable/fields.py | 8 +++++--- sample_project/README | 8 +++++--- sample_project/requirements.txt | 0 7 files changed, 14 insertions(+), 11 deletions(-) rename README => README.md (96%) create mode 100644 sample_project/requirements.txt diff --git a/AUTHORS b/AUTHORS index ec8b112..8821514 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,2 +1,2 @@ This software is maintained by: -Brandon Taylor +Brandon Taylor diff --git a/COPYRIGHT b/COPYRIGHT index d704ddc..0c1cd29 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -1,4 +1,4 @@ -(c) Copyright 2011 Brandon Taylor - bTaylorWeb +(c) Copyright 2011 Brandon Taylor - I Am Brandon Taylor django-admin-sortable is free software: you can redistribute it and/or modify it under @@ -8,4 +8,4 @@ django-admin-sortable is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. \ No newline at end of file +FOR A PARTICULAR PURPOSE. diff --git a/README b/README.md similarity index 96% rename from README rename to README.md index f04a5b9..b5a7d6d 100644 --- a/README +++ b/README.md @@ -1,4 +1,3 @@ -============= admin-sortable ============= diff --git a/adminsortable/__init__.py b/adminsortable/__init__.py index 2aa77c7..49aa0c8 100755 --- a/adminsortable/__init__.py +++ b/adminsortable/__init__.py @@ -1,4 +1,4 @@ -VERSION = (1, 3, 9) # following PEP 386 +VERSION = (1, 4, 0) # following PEP 386 DEV_N = None diff --git a/adminsortable/fields.py b/adminsortable/fields.py index 1460821..e3b254f 100644 --- a/adminsortable/fields.py +++ b/adminsortable/fields.py @@ -4,14 +4,16 @@ from django.db.models.fields.related import ForeignKey class SortableForeignKey(ForeignKey): """ Field simply acts as a flag to determine the class to sort by. - This field replaces previous functionality where `sortable_by` was definied as a model property - that specified another model class. + This field replaces previous functionality where `sortable_by` was + definied as a model property that specified another model class. """ def south_field_triple(self): try: from south.modelsinspector import introspector - cls_name = '{0}.{1}'.format(self.__class__.__module__, self.__class__.__name__) + cls_name = '{0}.{1}'.format( + self.__class__.__module__, + self.__class__.__name__) args, kwargs = introspector(self) return cls_name, args, kwargs except ImportError: diff --git a/sample_project/README b/sample_project/README index c1b1935..8c9c595 100644 --- a/sample_project/README +++ b/sample_project/README @@ -4,9 +4,11 @@ I hope it can help you out as much on your project(s) as it does on mine :) The only url patterns that are enabled for this project are /admin The username/password is: admin/admin -If you still need help, please contact me at: btaylorweb@gmail.com +I have not yet upgraded this sample application to use Django 1.5. +Please run this sample_project in a virtualenv and install dependencies +using the supplied requirements.txt via pip. + +If you still need help, please contact me at: brandon@iambrandontaylor.com Kind regards, Brandon Taylor - -bTaylor Web \ No newline at end of file diff --git a/sample_project/requirements.txt b/sample_project/requirements.txt new file mode 100644 index 0000000..e69de29