mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 21:27:49 +02:00
Add a CSV export functionality in admin and add price fields (#41)
* Implement an action do download data in csv * Refactor CSV download * Move price to main models and add csv to bookshelf * Update template and API * Small refactoring
This commit is contained in:
@@ -28,5 +28,5 @@ class RollingStockSerializer(serializers.ModelSerializer):
|
||||
|
||||
class Meta:
|
||||
model = RollingStock
|
||||
fields = "__all__"
|
||||
exclude = ("price",)
|
||||
read_only_fields = ("creation_time", "updated_time")
|
||||
|
Reference in New Issue
Block a user