exogen / django-adminbrowse Goto Github PK
View Code? Open in Web Editor NEW[UNMAINTAINED] Add related object links and other useful features to the Django admin interface.
[UNMAINTAINED] Add related object links and other useful features to the Django admin interface.
By default, a simple "easy_install django-adminbrowse" will install to a single .egg file. This breaks django template discovery and makes it complicated to deal with media files since you'd need to extract them from the egg first.
The former could be solved by recommending that the user enable django.template.loaders.eggs.Loader
but I'd prefer to avoid an egg install entirely due to the media file issues.
acdha/django-adminbrowse@721971c allows users to specify admin_order_field
in link_to_changelist
, which is quite handy when working with annotated querysets
@Gissues:{"order":50,"status":"backlog"}
Appreciate if you can please help resolve.
Creating test database for alias 'default'...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
No fixtures found.
Traceback (most recent call last):
File "/Users/x/domains/l/lib/python2.6/site-packages/adminbrowse/tests.py", line 104, in test_default_sets_html_for_empty_field
self.assertEqual(link(self.books[5]).strip(), "Unknown author")
AssertionError: u'' != 'Unknown author'
Traceback (most recent call last):
File "/Users/x/domains/l/lib/python2.6/site-packages/adminbrowse/tests.py", line 254, in test_default_sets_html_for_empty_set
self.assertEqual(link(self.books[5]).strip(), "No genres")
AssertionError: u'' != 'No genres'
Traceback (most recent call last):
File "/Users/x/domains/l/lib/python2.6/site-packages/adminbrowse/tests.py", line 206, in test_default_sets_html_for_empty_set
self.assertEqual(link(self.genres[4]).strip(), "No books")
AssertionError: u'' != 'No books'
Traceback (most recent call last):
File "/Users/x/domains/l/lib/python2.6/site-packages/adminbrowse/tests.py", line 163, in test_default_sets_html_for_empty_text
self.assertEqual(link(self.people[0]).strip(), "No books")
AssertionError: u'' != 'No books'
Ran 64 tests in 1.910s
FAILED (failures=4)
Destroying test database for alias 'default'...
Currently link_to_change doesn't generate visible links due to a minor transposition in the template:
<span class="change-link"><a href="{{ url }}" title="{{ title }}"></a> {{ value }}</span>
should be:
<span class="change-link"><a href="{{ url }}" title="{{ title }}">{{ value }}</a></span>
I just noticed that installing the distribution from PyPI fails when using pip:
pip install django-adminbrowse
Downloading/unpacking django-adminbrowse
Using download cache from /tmp/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fd%2Fdjango-adminbrowse%2Fdjango-adminbrowse-0.1.2.tar.gz
Running setup.py egg_info for package django-adminbrowse
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/Users/cadams/.virtualenvs/PROJECT/build/django-adminbrowse/setup.py", line 1, in <module>
from distribute_setup import use_setuptools
ImportError: No module named distribute_setup
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/Users/cadams/.virtualenvs/PROJECT/build/django-adminbrowse/setup.py", line 1, in <module>
from distribute_setup import use_setuptools
ImportError: No module named distribute_setup
Hello,
Using adminbrowse is great, it add even more features to the already standard admin interface.
I like the idea of making this admin more browse-able!
Thanks for creating this app!
Then I made some changes to your app for myself, but I would like to share as it might be useful to others too.
I added:
I've to admit I new to django, but I think the code for this is quit generic.
Then I'm also new to github, so I don't know how to share, as I can't upload a zip here...
Screenshot are available if you like, but can't share here on github :-(.
Best regards,
Karel.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.