1. Andres Vargas
  2. django-remove-password-input

Commits

Andres Vargas  committed acdeba6

adding javascript

  • Participants
  • Parent commits e87d781
  • Branches default

Comments (0)

Files changed (2)

File remove_password_input/admin.py

View file
 from django.contrib.auth.models import User
-from django.contrib.auth.admin import AdminUser
+from django.contrib.auth.admin import UserAdmin as AdminUser
 from django.contrib import admin
 
 admin.site.unregister(User)
 class AdminUserMixin(AdminUser):
 
     class Media:
-        js = ('static/remove_password_input/remove_password_input.js',)
+        js = ('remove_password_input/remove_password_input.js',)
 
 admin.site.register(User, AdminUserMixin)
 

File remove_password_input/static/remove_password_input/remove_password_input.js

View file
+
+(function($){
+
+  $(document).ready(function(){
+    $("#id_password").hide();
+  });
+
+})(django.jQuery)