google-code-export / django-grappelli

Automatically exported from code.google.com/p/django-grappelli
0 stars 0 forks source link

related module missing from svn #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. svn update;run server;navigate to admin

What is the expected output? What do you see instead?
TemplateSyntaxError at /admin/

What version of the product are you using? On what operating system?
SVN head

Please provide any additional information below.
ViewDoesNotExist: Could not import grappelli.views.related. Error was: No
module named related

By the way, wouldn't it be better to integrate something like Jannis
Leidel' Autocomplete widget
(http://jannisleidel.com/2008/11/autocomplete-form-widget-foreignkey-model-field
s/)
or variant of the same widget from
http://code.google.com/p/django-command-extensions/ instead of raw id fields?

Original issue reported on code.google.com by attem...@gmail.com on 24 Mar 2009 at 11:06

GoogleCodeExporter commented 9 years ago
thanks. it´s fixed.

about your suggestion: adding autocomplete is on my mind. however - I don´t 
think it
replaces the related-lookup. e.g., autocomplete starts to look for an object 
when you
type at least 3 characters - but what if your objects title has only 2 
characters?
you won´t find it. therefore, you still need the search-icon. moreover, 
reading the
comments on jannis' site it seems that his approach won´t work with the new 
admin-URLs.

however: adding an autocomplete-field is definitely a nice enhancement. if 
anyone
wants to commit a working (and tested) patch, I´ll include it ...

Original comment by sehmaschine on 24 Mar 2009 at 11:23

GoogleCodeExporter commented 9 years ago
I´m closing this ticket, because the main issue should be solved. you may want 
to
open a new enhancement-ticket for the autocomplete-field.

Original comment by sehmaschine on 24 Mar 2009 at 1:42