| Issue 246: | Benchmark grade should not be displayed when not installed | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Go to /admin/sis/schoolyear/XX there is a checkbox for benchmark grade. This should not be shown when benchmark grade is not installed. Having it in the admin's exclude would be fine, I don't mind it existing in the database unseen.
Nov 27, 2011
Project Member
#1
jmil...@cristoreyny.org
Nov 27, 2011
See how SSN is excluded based on permissions
def get_form(self, request, obj=None, **kwargs):
form = super(StudentAdmin,self).get_form(request,obj,**kwargs)
if not request.user.has_perm('sis.view_ssn_student'):
self.exclude = ("ssn",)
return form
for checking if install
if 'ecwsp.foo' in settings.INSTALLED_APPS
|