user's can't set/unset site in Login Details without the proper authorization
Tony Mack [Mon, 26 Jan 2015 03:16:35 +0000 (22:16 -0500)]
planetstack/core/admin.py

index 6e9be06..cef140b 100644 (file)
@@ -1296,6 +1296,7 @@ class UserAdmin(PermissionCheckingAdminMixin, UserAdmin):
                 ('Login Details', {'fields': ['backend_status_text', 'email', 'site','password','public_key'], 'classes':['suit-tab suit-tab-general']}),
                 ('Contact Information', {'fields': ('firstname','lastname','phone', 'timezone'), 'classes':['suit-tab suit-tab-contact']}),
             )
+            self.readonly_fields = ('backend_status_text', 'site') 
         return super(UserAdmin, self).get_form(request, obj, **kwargs)     
 
 class ControllerDashboardViewInline(PlStackTabularInline):