Skip to content

Commit

Permalink
update migration
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipthelen committed Apr 2, 2020
1 parent ad57f4d commit 882da57
Show file tree
Hide file tree
Showing 9 changed files with 130 additions and 2 deletions.
17 changes: 17 additions & 0 deletions devicegroups/migrations/0003_auto_20200312_1315.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 2.2.10 on 2020-03-12 12:15

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('devicegroups', '0002_rm_read_perm'),
]

operations = [
migrations.AlterModelOptions(
name='devicegroup',
options={'ordering': ['name'], 'verbose_name': 'Devicegroup', 'verbose_name_plural': 'Devicegroups'},
),
]
2 changes: 1 addition & 1 deletion devices/ajax.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import http.client
import json
import urllib
from http.client import ssl

from django.conf import settings
from django.forms.models import modelform_factory
Expand All @@ -26,6 +25,7 @@
from mail.models import MailTemplate
from users.models import Lageruser


class AutocompleteDevice(View):
def get(self, request):
name = request.GET["name"]
Expand Down
17 changes: 17 additions & 0 deletions devices/migrations/0011_auto_20200312_1315.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 2.2.10 on 2020-03-12 12:15

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('devices', '0010_auto_20200301_1513'),
]

operations = [
migrations.AlterModelOptions(
name='device',
options={'permissions': (('boss_mails', 'Emails for bosses'), ('managment_mails', 'Emails for managment'), ('support_mails', 'Emails for support'), ('lend_device', 'Can lend Device'), ('view_devicedetails', 'View Device Details')), 'verbose_name': 'Device', 'verbose_name_plural': 'Devices'},
),
]
2 changes: 1 addition & 1 deletion devices/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class Meta:
("managment_mails", _("Emails for managment")),
("support_mails", _("Emails for support")),
("lend_device", _("Can lend Device")),
("view_puppetdetails", _("View Puppet Details"))
("view_devicedetails", _("View Device Details"))
)

def get_absolute_url(self):
Expand Down
17 changes: 17 additions & 0 deletions devicetags/migrations/0003_auto_20200312_1315.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 2.2.10 on 2020-03-12 12:15

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('devicetags', '0002_rm_read_perm'),
]

operations = [
migrations.AlterModelOptions(
name='devicetag',
options={'ordering': ['name'], 'verbose_name': 'Devicetag', 'verbose_name_plural': 'Devicegtag'},
),
]
17 changes: 17 additions & 0 deletions devicetypes/migrations/0003_auto_20200312_1315.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 2.2.10 on 2020-03-12 12:15

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('devicetypes', '0002_rm_read_perm'),
]

operations = [
migrations.AlterModelOptions(
name='type',
options={'ordering': ['name'], 'verbose_name': 'Type', 'verbose_name_plural': 'Types'},
),
]
17 changes: 17 additions & 0 deletions locations/migrations/0003_auto_20200312_1315.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 2.2.10 on 2020-03-12 12:15

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('locations', '0002_rm_read_perm'),
]

operations = [
migrations.AlterModelOptions(
name='section',
options={'ordering': ['name'], 'verbose_name': 'Section', 'verbose_name_plural': 'Sections'},
),
]
17 changes: 17 additions & 0 deletions network/migrations/0003_auto_20200312_1315.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 2.2.10 on 2020-03-12 12:15

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('network', '0002_rm_read_perm'),
]

operations = [
migrations.AlterModelOptions(
name='ipaddress',
options={'ordering': ['address'], 'verbose_name': 'IP-Address', 'verbose_name_plural': 'IP-Addresses'},
),
]
26 changes: 26 additions & 0 deletions users/migrations/0018_auto_20200312_1315.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Generated by Django 2.2.10 on 2020-03-12 12:15

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('users', '0017_rm_read_perm'),
]

operations = [
migrations.AlterModelOptions(
name='department',
options={'ordering': ['name'], 'permissions': (('add_department_user', 'Can add a User to a Department'), ('delete_department_user', 'Can remove a User from a Department')), 'verbose_name': 'Department', 'verbose_name_plural': 'Departments'},
),
migrations.AlterModelOptions(
name='lageruser',
options={'ordering': ['username'], 'verbose_name': 'User', 'verbose_name_plural': 'Users'},
),
migrations.AlterField(
model_name='lageruser',
name='theme',
field=models.CharField(blank=True, choices=[('flatly', 'flatly'), ('darkly', 'darkly'), ('simplex', 'simplex'), ('superhero', 'superhero'), ('united', 'united')], max_length=50),
),
]

0 comments on commit 882da57

Please sign in to comment.