My favorites | Sign in
Project Home Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
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
Status:  Fixed
Owner:  jmil...@cristoreyny.org
Closed:  Nov 2011


 
Project Member Reported by dmbs...@gmail.com, Nov 27, 2011
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
How does one add/remove an attribute from a model based on what
applications are installed?

On Sun, Nov 27, 2011 at 1:16 PM, <
student-worker-relational-database@googlecode.com> wrote:
Nov 27, 2011
Project Member #2 dmbs...@gmail.com
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

Nov 28, 2011
Project Member #3 jmil...@cristoreyny.org
This issue was closed by revision 38a7a758bd5f.
Status: Fixed

Powered by Google Project Hosting