mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-12-22 00:09:42 +01:00
debian 12: add missing views to views.py in websitefunctions
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user