Comments (4)
+1
from django-generic-m2m.
django-autocomplete-light provides a widget that works in the admin. Example: https://github.com/yourlabs/django-autocomplete-light/tree/master/test_project/generic_m2m_autocomplete
You can check this video at 6:25 http://www.youtube.com/watch?v=QTGm0qL6CH4&feature=youtu.be
from django-generic-m2m.
Both of the links @jpic provided no longer work. Are there any other example widgets for viewing generic m2m in the admin?
from django-generic-m2m.
This is because django-generic-m2m is natively supported by
django-autocomplete-light 2.x as an optionnal dependency.
Basically you have nothing special to do, autocomplete_light.ModelForm will use a GenericModelMultipleChoiceField by default with the first registered generic autocomplete by default for django-generic-m2m relations.
Read the tutorial and docs about generic m2m if needed:
http://django-autocomplete-light.readthedocs.org/en/stable-2.x.x/generic.html
from django-generic-m2m.
Related Issues (18)
- doctest in tests HOT 1
- help_text and verbose_name keyword arguments HOT 1
- Get all by type HOT 1
- ValidationError raised in admin interface when used with django-autocomplete-light HOT 2
- Release on Pypi HOT 1
- Handle non-existent relation "genericm2m_relatedobject" HOT 4
- Deprecation warnings.
- KeyError exception when calling generic_objects
- Unable to install package with pip: python setup.py egg_info failed HOT 1
- Older versions of Django HOT 1
- Initial migration fails HOT 1
- Q: are multiple related fields permissible on one model?
- add translations
- Is the project still maintained?
- Example App admin needs basic.inlines installed
- Duplicate connections HOT 2
- Reverse related descriptor HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-generic-m2m.