Add container management features: implement update, delete with data, and delete while preserving data functionalities. Update views, URLs, and templates for enhanced user interaction and data safety. Introduce modals for container updates and deletion options, improving overall user experience.

This commit is contained in:
Master3395
2025-09-18 22:16:42 +02:00
parent 7a84819361
commit 317b75bb9a
16 changed files with 1540 additions and 19 deletions

View File

@@ -16,6 +16,9 @@ class Users(models.Model):
dlbandwidth = models.IntegerField(db_column='DLBandwidth') # Field name made lowercase.
date = models.DateField(db_column='Date') # Field name made lowercase.
lastmodif = models.CharField(db_column='LastModif', max_length=255) # Field name made lowercase.
# New fields for individual quota management
custom_quota_enabled = models.BooleanField(default=False, help_text="Enable custom quota for this FTP user")
custom_quota_size = models.IntegerField(default=0, help_text="Custom quota size in MB (0 = use package default)")
class Meta:
db_table = 'users'