Commit 9ef61e32 by Gazdag Péter

Bug fixes

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