1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00
This commit is contained in:
catborise 2020-06-03 16:58:04 +03:00
commit 9f2de6d916
4 changed files with 27 additions and 1 deletions

View file

@ -0,0 +1,24 @@
# Generated by Django 2.2.12 on 2020-05-27 12:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='PermissionSet',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
],
options={
'permissions': (('change_password', 'Can change password'), ),
'managed': False,
'default_permissions': (),
},
),
]

View file

@ -9,6 +9,7 @@ from accounts.models import UserAttributes
class AdminTestCase(TestCase):
def setUp(self):
self.client.login(username='admin', password='admin')
def test_group_list(self):
response = self.client.get(reverse('admin:group_list'))
self.assertEqual(response.status_code, 200)

View file

@ -16,6 +16,7 @@ from admin.decorators import superuser_only
from webvirtcloud.settings import QEMU_CONSOLE_LISTEN_ADDRESSES
@superuser_only
def create_instance_select_type(request, compute_id):
"""

View file

@ -22,4 +22,4 @@
</ul>
</div>
</div>
</nav>
</nav>