GithubHelp home page GithubHelp logo

Comments (4)

audreyfeldroy avatar audreyfeldroy commented on September 1, 2024

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.

pydanny avatar pydanny commented on September 1, 2024

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.

RaphaelKimmig avatar RaphaelKimmig commented on September 1, 2024

@pydanny

Regarding menu abstraction I was talking about something like get_menu_items() (see #27).

from django-admin2.

pydanny avatar pydanny commented on September 1, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.