docs
0
# Import/Export System
1
2
Data import/export functionality, batch processing, CSV/Excel support, and data migration tools.
3
4
## Capabilities
5
6
### Job System
7
8
```python { .api }
9
class Job(models.Model):
10
"""
11
Background job for long-running operations like import/export.
12
13
Attributes:
14
- type: ForeignKey, job type
15
- status: int, job status (pending, running, completed, failed)
16
- user: ForeignKey, job owner
17
- data: JSONField, job parameters and progress
18
19
Methods:
20
- execute(): Run the job
21
- get_progress(): Get job progress percentage
22
"""
23
```
24
25
### Mass Import Results
26
27
```python { .api }
28
class MassImportJobResult(models.Model):
29
"""
30
Results and statistics from mass import operations.
31
32
Attributes:
33
- job: Job, parent job
34
- entity_count: int, number of entities imported
35
- error_count: int, number of errors encountered
36
"""
37
```