Closed GoogleCodeExporter closed 9 years ago
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:
Original comment by jmil...@cristoreyny.org
on 27 Nov 2011 at 6:43
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
Original comment by dmbs...@gmail.com
on 27 Nov 2011 at 6:53
This issue was closed by revision 38a7a758bd5f.
Original comment by jmil...@cristoreyny.org
on 28 Nov 2011 at 2:51
Original issue reported on code.google.com by
dmbs...@gmail.com
on 27 Nov 2011 at 6:15