Find way
models.py
.....
uid= models.IntegerField(blank = True, null = True, ...
....
admin.py
....
class Media:
js = (
'js/jquery.min.js',
'js/us.js'
)
....
us.js
$(document).ready(function(){
$(".form-row.uid").css("display","none");
u=$("#uid").attr("value");
$("#id_uid").attr("value",u);
});
in /django/contrib/admin/templates/admin/base.html
add <input id="uid" type="hidden" value="{{user.id}}">
that`s work :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---