mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-22 12:16:19 +00:00
* Enable E501 rule * Configure ruff formatter * Reformat migration files to fix line length violations * Fix various E501 errors * Move table template code to template_code.py & ignore E501 errors * Reformat raw SQL
63 lines
1.9 KiB
Python
63 lines
1.9 KiB
Python
import django.contrib.auth.models
|
|
import django.contrib.postgres.fields
|
|
from django.db import migrations, models
|
|
import ipam.fields
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
replaces = [
|
|
('users', '0002_standardize_id_fields'),
|
|
('users', '0003_token_allowed_ips_last_used'),
|
|
('users', '0004_netboxgroup_netboxuser'),
|
|
]
|
|
|
|
dependencies = [
|
|
('users', '0001_squashed_0011'),
|
|
('auth', '0012_alter_user_first_name_max_length'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name='objectpermission',
|
|
name='id',
|
|
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='token',
|
|
name='id',
|
|
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='userconfig',
|
|
name='id',
|
|
field=models.BigAutoField(auto_created=True, primary_key=True, serialize=False),
|
|
),
|
|
migrations.AddField(
|
|
model_name='token',
|
|
name='allowed_ips',
|
|
field=django.contrib.postgres.fields.ArrayField(
|
|
base_field=ipam.fields.IPNetworkField(), blank=True, null=True, size=None
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name='token',
|
|
name='last_used',
|
|
field=models.DateTimeField(blank=True, null=True),
|
|
),
|
|
migrations.CreateModel(
|
|
name='NetBoxGroup',
|
|
fields=[],
|
|
options={
|
|
'verbose_name': 'Group',
|
|
'proxy': True,
|
|
'indexes': [],
|
|
'constraints': [],
|
|
'ordering': ('name',),
|
|
},
|
|
bases=('auth.group',),
|
|
managers=[
|
|
('objects', django.contrib.auth.models.GroupManager()),
|
|
],
|
|
),
|
|
]
|