Commit 47d982d5 by Bodor Máté

Merge branch 'image-model' into 'template'

Create image model

See merge request !5
parents 4a001965 75d2ff02
......@@ -15,3 +15,31 @@ class Disk(models.Model):
verbose_name="remote_ID",
help_text="ID, which helps access the disk",
)
class Image(models.Model):
"""A virtual image.
"""
name = models.CharField(
max_length=100,
verbose_name="name",
help_text="Human readable name of image."
)
description = models.TextField(
verbose_name="description",
blank=True,
help_text="Description of the image."
)
remote_ID = models.CharField(
max_length=40,
unique=True,
verbose_name="remote_ID",
help_text="ID, which helps access the image."
)
created_at = models.DateTimeField(
auto_now_add=True,
editable=False,
help_text="Date, when the image created."
)
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