Working on updating documentation and sample project
parent
8662ebae88
commit
cffbd8534e
2
AUTHORS
2
AUTHORS
|
|
@ -1,2 +1,2 @@
|
||||||
This software is maintained by:
|
This software is maintained by:
|
||||||
Brandon Taylor <btaylorweb@gmail.com>
|
Brandon Taylor <brandon@iambrandontaylor.com>
|
||||||
|
|
|
||||||
|
|
@ -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
|
django-admin-sortable is free software: you can
|
||||||
redistribute it and/or modify it under
|
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
|
that it will be useful, but WITHOUT ANY
|
||||||
WARRANTY; without even the implied
|
WARRANTY; without even the implied
|
||||||
warranty of MERCHANTABILITY or FITNESS
|
warranty of MERCHANTABILITY or FITNESS
|
||||||
FOR A PARTICULAR PURPOSE.
|
FOR A PARTICULAR PURPOSE.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
=============
|
|
||||||
admin-sortable
|
admin-sortable
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
VERSION = (1, 3, 9) # following PEP 386
|
VERSION = (1, 4, 0) # following PEP 386
|
||||||
DEV_N = None
|
DEV_N = None
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,16 @@ from django.db.models.fields.related import ForeignKey
|
||||||
class SortableForeignKey(ForeignKey):
|
class SortableForeignKey(ForeignKey):
|
||||||
"""
|
"""
|
||||||
Field simply acts as a flag to determine the class to sort by.
|
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
|
This field replaces previous functionality where `sortable_by` was
|
||||||
that specified another model class.
|
definied as a model property that specified another model class.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def south_field_triple(self):
|
def south_field_triple(self):
|
||||||
try:
|
try:
|
||||||
from south.modelsinspector import introspector
|
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)
|
args, kwargs = introspector(self)
|
||||||
return cls_name, args, kwargs
|
return cls_name, args, kwargs
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
|
||||||
|
|
@ -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 only url patterns that are enabled for this project are /admin
|
||||||
The username/password is: admin/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,
|
Kind regards,
|
||||||
Brandon Taylor
|
Brandon Taylor
|
||||||
|
|
||||||
bTaylor Web
|
|
||||||
Loading…
Reference in New Issue