Commit fd75f6f9 by Dudás Ádám

storage: fix (?) self reference

parent 0e2283c9
...@@ -38,8 +38,8 @@ class Disk(TimeStampedModel): ...@@ -38,8 +38,8 @@ class Disk(TimeStampedModel):
format = models.CharField(max_length=10, choices=FORMATS) format = models.CharField(max_length=10, choices=FORMATS)
size = models.IntegerField() size = models.IntegerField()
type = models.CharField(max_length=10, choices=TYPES) type = models.CharField(max_length=10, choices=TYPES)
base = models.ForeignKey('Disk', related_name='snapshots', base = models.ForeignKey('self', blank=True null=True,
null=True, blank=True) related_name='derivatives')
class Meta: class Meta:
ordering = ['name'] ordering = ['name']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment