Comments (7)
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
- Investors data for issuing shares
- Investors data for compliance data with different fields
- Founders to see investors with invested project.
from django-import-export.
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.
What is the relationship between Game and Level models?
from django-import-export.
The Level
model has a foreign key to Game
, and is shown inline in the Game
ModelAdmin
.
from django-import-export.
You are able to do that by explicitly defining fields
(in Meta class)
from django-import-export.
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.
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)
- Remove support for django3.2
- Add type hints HOT 3
- Confirmation page displays incorrect fields
- Using a ManyToManyWidget does not allow to ignore an empty value HOT 1
- A way to make a header column required HOT 4
- Add support for PositiveBigIntegerField HOT 2
- Python object as JSONWidget input HOT 3
- Admin Export fails for models with a primary key which is not "id" HOT 1
- Admin Export does not honour the "IMPORT_EXPORT_SKIP_ADMIN_ACTION_EXPORT_UI" setting HOT 1
- Badly formed header presents a stack trace instead of an error
- 4.0 compatiblity with AutoSlugField - unexpected keyword argument 'allow_blank' HOT 1
- Admin export confirm page runs a query for the entire table HOT 4
- attribute and column_name mixed up for export and Meta.fields HOT 3
- ImportForm does not support widgets with associated CSS and JS media HOT 1
- Widget.__init__() got an unexpected keyword argument 'key_is_id' when a field is ForeignKey subclass HOT 2
- 'import_id_fields = []' can't handle programmaticaly created columns in 4.0 HOT 5
- Can't import file without an `id` column in V4 HOT 4
- v4 add custom delimiter for csv. HOT 5
- Referencing a column alias in the `fields` list causes a crash on import HOT 1
- `use_natural_foreign_keys` in ModelResource.Meta not working in V4 HOT 2
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-import-export.