Files
ihrm/asset/resources.py
Ashwanth Balakrishnan 58be33a8d7 Added Pre-Commit Hooks (#175)
* Added pre commit hook

* Run pre commit hook on all files

---------

Co-authored-by: Horilla <131998600+horilla-opensource@users.noreply.github.com>
2024-05-07 12:23:36 +05:30

22 lines
462 B
Python

"""
Module: resources.py
This module defines classes for handling resources related to assets.
"""
from import_export import resources
from .models import Asset
class AssetResource(resources.ModelResource):
"""
This class is used to import and export Asset data using the import_export library.
"""
class Meta:
"""
Specifies the model to be used for import and export.
"""
model = Asset