Hi guys, how i'll exclude a field in django admin if the users are not super admin?
thanks
Hi guys, how i'll exclude a field in django admin if the users are not super admin?
thanks
I did it in this way:
def add_view(self, request, form_url='', extra_context=None):
if not request.user.is_superuser:
self.exclude=('activa', )
return super(NoticiaAdmin, self).add_view(request, form_url='', extra_context=None)