def __init__(self, request, initial, *args, **kwargs):
    super(UpdateProjectInfoAction, self).__init__(request, initial, *args, **kwargs)
    if (initial['project_id'] == request.user.project_id):
        self.fields['enabled'].widget.attrs['disabled'] = True
        self.fields['enabled'].help_text = _('You cannot disable your current project')
def __init__(self, request, initial, *args, **kwargs):
    super(UpdateProjectInfoAction, self).__init__(request, initial, *args, **kwargs)
    if (initial['project_id'] == request.user.project_id):
        self.fields['enabled'].widget.attrs['disabled'] = True
        self.fields['enabled'].help_text = _('You cannot disable your current project')