chore: сохраняем пароль которым ставили сервер

This commit is contained in:
protokey committed 2026-09-25 15:14:17 +04:00
1 parent 6d322f36a9
commit c4300066f5
9 files changed
+133 -38

No files matched your search

+3 -1
View File
@@ -33,7 +33,9 @@ class UserAdmin(BaseUserAdmin):
class ServerInline(admin.StackedInline):
model = Server
extra = 0
fields = ('role', 'address', 'ssh_port', 'root_password', 'public_key', 'known_hosts', 'uname')
fields = (
'role', 'address', 'ssh_port', 'root_password', 'default_root_password', 'public_key', 'known_hosts', 'uname',
)
readonly_fields = fields
can_delete = False