Fix speed limits of peers inside a limited network and require profile values

This commit is contained in:
Eduardo Silva
2026-11-24 19:41:20 -03:00
parent 3f2da7e545
commit 7d4b083854
7 changed files with 191 additions and 75 deletions
+5 -4
View File
@@ -1,6 +1,7 @@
# Generated by Django 5.2.19 on 2026-11-24 15:57
import uuid
from decimal import Decimal
from django.db import migrations, models
@@ -18,10 +19,10 @@ class Migration(migrations.Migration):
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=64, unique=True)),
('download_limit', models.DecimalField(blank=True, decimal_places=3, max_digits=9, null=True)),
('upload_limit', models.DecimalField(blank=True, decimal_places=3, max_digits=9, null=True)),
('download_burst', models.DecimalField(blank=True, decimal_places=3, max_digits=9, null=True)),
('upload_burst', models.DecimalField(blank=True, decimal_places=3, max_digits=9, null=True)),
('download_limit', models.DecimalField(decimal_places=3, default=Decimal('0'), max_digits=9)),
('upload_limit', models.DecimalField(decimal_places=3, default=Decimal('0'), max_digits=9)),
('download_burst', models.DecimalField(decimal_places=3, default=Decimal('0'), max_digits=9)),
('upload_burst', models.DecimalField(decimal_places=3, default=Decimal('0'), max_digits=9)),
('created', models.DateTimeField(auto_now_add=True)),
('updated', models.DateTimeField(auto_now=True)),
('uuid', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),