Comments (4)
My UI goal and theming docs addition is only a tiny piece of this. @pydanny, maybe write up your thoughts when you have time later?
from django-admin2.
First off, I finally got a chance to sit and think about this issue and wrote up https://django-admin2.readthedocs.org/en/latest/design.html. Thank you for submitting it!
As for your bullets
- How do the admin views interact with the admin instance? Do they have access to an Admin2 instance? Do the views use the Admin2 instance for common tasks like getting a queryset?
See issue #99
- How are related models handled with the desired registration scheme - are they still set up independently and added to the "main" Admin2 instance (inlines = [ ... ])?
I like this pattern as it's very intuitive so we'll stick with it for now. Once we get a version of it working, we can explore other API methods.
- Is the goal to closely follow the "old" admin with respect to configuration (admin.list_display_fields, ...)? Or would it be preferable to reduce the amount of configuration on the Admin2 class and push more of it onto the CBVs?
I like the idea of being able to define it in the Admin2 class and then allow individual CBVs the capability to override it as needed. This would allow projects the capability for a lot more control. However, I'm not sure how we would define this API yet. Once we get basic functionality we'll prototype this out.
- Is there a high level menu abstraction (like a get_menu_entries that returns all Entries for an Admin2 instance)?
You mean something like a Admin2.get_model_instances()
or a Admin2.get_menu_items()
.
from django-admin2.
Regarding menu abstraction I was talking about something like get_menu_items() (see #27).
from django-admin2.
@RaphaelKimmig I think https://django-admin2.readthedocs.org/en/latest/design.html addresses your original request. As new design discussions emerge, please open new issues! 👍
from django-admin2.
Related Issues (20)
- Django 1.8 issue HOT 3
- Django 1.8 issues HOT 1
- Add 'django.template.context_processors.static', to context_processors
- Add Django 1.9 compatability HOT 23
- Enhancement: Removing dependancy that matter only in theme HOT 2
- Deregister last app model does not delete the app
- fix test on travis HOT 2
- fix test on travis HOT 1
- Add material theme for admin2
- 0.7.0 release HOT 4
- move test runner and tests to py.test
- move views to django-vanilla-views
- Jinja2 template engine support
- djangocircus.com domain expired HOT 1
- New Transifex maintainer wanted HOT 5
- Add django 1.11 LTS and 2.0 support and remove EOL versions. HOT 2
- Plans for future release Django 2.x? HOT 2
- consider using https://github.com/ilblackdragon/django-themes
- No update since roughly one year. State of the project?1 HOT 4
- ERROR: django-admin2 0.7.1 has requirement django-filter==1.0.0, but you'll have django-filter 2.3.0 which is incompatible. HOT 5
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-admin2.