Commit 9ef61e32 by Gazdag Péter

Bug fixes

parent ab5325d4
......@@ -5,6 +5,6 @@ class Disk():
"""A virtual disk.
"""
name = CharField(blank=True, max_length=100, verbose_name=_("name"), help_text=_("Name of the disk"))
remote_ID = CharField(max_length=40, unique=True, verbose_name=_("remote_ID"), help_text=_("ID, which helps access the disk"))
name = models.CharField(blank=True, max_length=100, verbose_name="name", help_text="Name of the disk")
remote_ID = models.CharField(max_length=40, unique=True, verbose_name="remote_ID", help_text="ID, which helps access the disk")
\ No newline at end of file
......@@ -43,6 +43,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'rest_framework',
'djoser',
'background_task',
]
MIDDLEWARE = [
......
......@@ -6,6 +6,6 @@ class DataStore():
"""Collection of virtual disks.
"""
name = CharField(max_length=100, unique=True, verbose_name=_('name'), help_text=_("Name of the data store."))
remote_ID = CharField(max_length=40, unique=True, verbose_name=_("remote_ID"), help_text=_("ID, which helps access the data store."))
name = models.CharField(max_length=100, unique=True, verbose_name="name", help_text="Name of the data store.")
remote_ID = models.CharField(max_length=40, unique=True, verbose_name="remote_ID", help_text="ID, which helps access the data store.")
#vm
\ No newline at end of file
......@@ -5,8 +5,8 @@ class InstanceTemplate():
"""Virtual machine template.
"""
name = CharField(max_length=100, verbose_name=_('name'),
help_text=_('Human readable name of template.'))
description = TextField(verbose_name=_('description'), blank=True, help_text=_("Description of the template."))
owner = ForeignKey(User)
remote_ID = CharField(max_length=40, unique=True, verbose_name=_("remote_ID"), help_text=_("ID, which helps access the template."))
\ No newline at end of file
name = models.CharField(max_length=100, verbose_name="name",
help_text="Human readable name of template.")
description = models.TextField(verbose_name="description", blank=True, help_text="Description of the template.")
#owner = models.ForeignKey(User)
remote_ID = models.CharField(max_length=40, unique=True, verbose_name="remote_ID", help_text="ID, which helps access the template.")
\ No newline at end of file
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