2023-08-21 17:25:49 +05:30
|
|
|
"""
|
|
|
|
|
Module: resources.py
|
|
|
|
|
This module defines classes for handling resources related to assets.
|
|
|
|
|
"""
|
2024-03-10 19:37:46 +05:30
|
|
|
|
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
|