mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-12 16:26:12 +01:00
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:
@@ -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'
|
||||
Reference in New Issue
Block a user