Giter Club home page Giter Club logo

Comments (7)

JyothiVutukuri avatar JyothiVutukuri commented on May 18, 2024 5

I think, this issue has to reopen
I am using django import and export in django admin

But we want multiple types of export for the same model
Eg. We have investors model
We want exports like

  1. Investors data for issuing shares
  2. Investors data for compliance data with different fields
  3. Founders to see investors with invested project.

from django-import-export.

ton77v avatar ton77v commented on May 18, 2024 1

having an option to use multiple resource classes will be very handy

I have models with various M2M relationships and sometimes can get export data for only some of those without a need 2 touch the rest

it's all doable using export first, etc etc + there's a workaround with Proxy Models but would be much easier to choose the resource class when you need to update just some (sets) of the data

from django-import-export.

geeknam avatar geeknam commented on May 18, 2024

What is the relationship between Game and Level models?

from django-import-export.

kitsunde avatar kitsunde commented on May 18, 2024

The Level model has a foreign key to Game, and is shown inline in the Game ModelAdmin.

from django-import-export.

geeknam avatar geeknam commented on May 18, 2024

You are able to do that by explicitly defining fields (in Meta class)

from django-import-export.

bmihelac avatar bmihelac commented on May 18, 2024

If you want to export Level data, together with Game data, you can do that by customizing GameResource, as @geeknam described above.

However, for having multiple different exporters per Admin Model you would have to write your own admin views. This should not be complicated at all, see how ExportMixin is implemented.

from django-import-export.

bmihelac avatar bmihelac commented on May 18, 2024

I am closing this issue for now since it can be achieved without need to update django-import-export.

If it turns out that more people need such feature or can it can be added easily let's discuss further.

from django-import-export.

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.