Coverage for src/crawler/models/container_source.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.7.0, created at 2025-04-03 12:36 +0000

1from django.db import models 

2from ptf.models import Container 

3 

4from .source import Source 

5 

6 

7class ContainerSource(models.Model): 

8 container = models.OneToOneField(Container, related_name="origin", on_delete=models.CASCADE) 

9 source = models.ForeignKey(Source, on_delete=models.RESTRICT) 

10 source_version = models.CharField(max_length=20, default="v0.0.1")