We are implementing the gamification component of a project in Django. We would like the superuser to be able to define new badges and redefine existing ones inside the Django admin interface.
The problem as we see it is that defining the sometimes complicated conditions for badges needs to be done in code. The superuser will be technically knowledgeable, but will not be a programmer.
How would you go about letting the superuser do this in the Django admin interface, rather than alter the application?
Here are some examples of badges:
- Created 10 tags that have been used on 10 questions by 10 different members.
- Answered 10 unanswered questions.
- Wrote 20 comments to a question (comments got at least 5 points each).