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:
parent
70032fc2e1
commit
c79a635923
3 changed files with 32 additions and 4 deletions
30
computes/migrations/0003_auto_20200121_1523.py
Normal file
30
computes/migrations/0003_auto_20200121_1523.py
Normal 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),
|
||||||
|
),
|
||||||
|
]
|
|
@ -6,7 +6,7 @@ class Compute(models.Model):
|
||||||
hostname = models.CharField(max_length=64)
|
hostname = models.CharField(max_length=64)
|
||||||
login = models.CharField(max_length=20)
|
login = models.CharField(max_length=20)
|
||||||
password = models.CharField(max_length=14, blank=True, null=True)
|
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()
|
type = models.IntegerField()
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
|
|
|
@ -12,8 +12,6 @@ urlpatterns = [
|
||||||
url(r'^computes/', include('computes.urls')),
|
url(r'^computes/', include('computes.urls')),
|
||||||
url(r'^logs/', include('logs.urls')),
|
url(r'^logs/', include('logs.urls')),
|
||||||
url(r'^datasource/', include('datasource.urls')),
|
url(r'^datasource/', include('datasource.urls')),
|
||||||
|
|
||||||
|
|
||||||
url(r'^console/$', console, name='console'),
|
url(r'^console/$', console, name='console'),
|
||||||
# (r'^admin/', include(admin.site.urls)),
|
#url(r'^admin/', include(admin.site.urls)),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue