1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 15:15:22 +00:00

change compute name, hostaname, details char size. url.py typo fix

This commit is contained in:
catborise 2020-01-21 15:26:35 +03:00
parent 70032fc2e1
commit c79a635923
3 changed files with 32 additions and 4 deletions

View file

@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.26 on 2020-01-21 12:23
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('computes', '0002_compute_details'),
]
operations = [
migrations.AlterField(
model_name='compute',
name='details',
field=models.CharField(blank=True, max_length=64, null=True),
),
migrations.AlterField(
model_name='compute',
name='hostname',
field=models.CharField(max_length=64),
),
migrations.AlterField(
model_name='compute',
name='name',
field=models.CharField(max_length=64),
),
]

View file

@ -6,7 +6,7 @@ class Compute(models.Model):
hostname = models.CharField(max_length=64)
login = models.CharField(max_length=20)
password = models.CharField(max_length=14, blank=True, null=True)
details = models.CharField(max_length=50, null=True, blank=True)
details = models.CharField(max_length=64, null=True, blank=True)
type = models.IntegerField()
def __unicode__(self):

View file

@ -12,8 +12,6 @@ urlpatterns = [
url(r'^computes/', include('computes.urls')),
url(r'^logs/', include('logs.urls')),
url(r'^datasource/', include('datasource.urls')),
url(r'^console/$', console, name='console'),
# (r'^admin/', include(admin.site.urls)),
#url(r'^admin/', include(admin.site.urls)),
]