Files
ihrm/asset/resources.py

21 lines
460 B
Python
Raw Normal View History

2023-08-21 17:25:49 +05:30
"""
Module: resources.py
This module defines classes for handling resources related to assets.
"""
2023-05-10 15:06:57 +05:30
from import_export import resources
from .models import Asset
2023-08-21 17:25:49 +05:30
2023-05-10 15:06:57 +05:30
class AssetResource(resources.ModelResource):
2023-08-21 17:25:49 +05:30
"""
This class is used to import and export Asset data using the import_export library.
"""
2023-05-10 15:06:57 +05:30
class Meta:
2023-08-21 17:25:49 +05:30
"""
Specifies the model to be used for import and export.
"""
model = Asset