robogals / myrobogals

myRobogals is the global intranet and record-keeping tool for Robogals. It has been built to simplify many of our day-to-day tasks including organising school visits, maintaining a member database, communicating with members, storing records reliably for future generations and easily collecting statistics on a global scale.
https://my.robogals.org
10 stars 21 forks source link

Implement roles under ```rggroups``` #92

Closed manhinli closed 7 years ago

manhinli commented 10 years ago

Implement role model definition under rggroups as described in Trello:

yfcheung commented 10 years ago

RoleAdmin model after django.contrib.auth.admin.UserAdmin copied and pasted get_fieldsets and get_form from UserAdmin (Don't know what happen) TODO

  1. either know what happen or via experimental techniques
  2. add javascript to admin site so selecting role_type will automatically display applicable groups
  3. model role.save(), add applicable group check, need to know what exception to throw