Comments (3)
Yes, you can use permissions to control which users have access, or to remove the functionality completely, you can modify which mixins you link to the model.
e.g.
# Export only
class BookAdmin(ExportMixin, admin.ModelAdmin):
pass
# import only
class BookAdmin(ImportMixin, admin.ModelAdmin):
pass
e.g. import only:
from django-import-export.
Great solution, but perhaps it would be even better if users with only read access didn't see the import button, while those with read and write access could still see all the buttons.
Thanks
from django-import-export.
Err the obvious way to do it is via permissions: https://django-import-export.readthedocs.io/en/latest/installation.html#import-export-import-permission-code
from django-import-export.
Related Issues (20)
- The error message for invalid column names is misleading
- Export the excel as password protected file HOT 3
- `is_create` param should be passed into new `do_instance_save()` method
- `SimpleArrayWidget.render()` crashes if value is None
- Djangonaut Space navigator interest
- how to skip error for confirm: '"Field 'id' expected a number but got '1-variant'. " HOT 2
- Not able to export to xls with UUIDs HOT 2
- Support dynamic selection of Resource class based on request property
- Issue with adding rows with generated field HOT 6
- 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 HOT 1
- 4.0 compatiblity with AutoSlugField - unexpected keyword argument 'allow_blank' HOT 1
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.