debian 12: add missing views to views.py in websitefunctions

This commit is contained in:
usmannasir
2025-09-19 15:20:17 +05:00
parent 5da6200d7c
commit c2c41fe25c
2 changed files with 1 additions and 24 deletions

View File

@@ -124,7 +124,7 @@ class ContainerManager(multi.Thread):
portDef = item.split('/')
portConfig[portDef[0]] = portDef[1]
if image is None or image is '' or tag is None or tag is '':
if image is None or image == '' or tag is None or tag == '':
return redirect(reverse('containerImage'))
Data = {"ownerList": adminNames, "image": image, "name": name, "tag": tag, "portConfig": portConfig,

View File

@@ -1,23 +0,0 @@
# Generated migration for FTP custom quota fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ftp', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='users',
name='custom_quota_enabled',
field=models.BooleanField(default=False, help_text='Enable custom quota for this FTP user'),
),
migrations.AddField(
model_name='users',
name='custom_quota_size',
field=models.IntegerField(default=0, help_text='Custom quota size in MB (0 = use package default)'),
),
]