Refactor device management: add vendor field, enhance admin display, and improve MAC address handling
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# Generated by Django 5.2 on 2025-06-01 13:17
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("devices", "0006_alter_device_mac"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="device",
|
||||
name="vendor",
|
||||
field=models.CharField(blank=True, default="", max_length=255, null=True),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 5.2 on 2025-06-01 14:15
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("devices", "0007_device_vendor"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="device",
|
||||
name="blocked_by",
|
||||
field=models.CharField(
|
||||
blank=True,
|
||||
choices=[("ADMIN", "Admin"), ("PARENT", "Parent")],
|
||||
default=None,
|
||||
max_length=255,
|
||||
null=True,
|
||||
),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user