Граф коммитов

7 Коммитов

Автор SHA1 Сообщение Дата
Les Orchard fe6e970a0f Fix update_badges misuse of model.save() 2014-02-03 16:06:03 -05:00
Will Kahn-Greene 725e735a10 Add documentation
This does a first pass on API docs. I think I caught everything, but
it's hard to know for sure. One thing is that there are a bunch of class
members that have no docstrings, so they don't currently show up in the
API docs even though they're specified in the autoclass calls.
2013-08-19 17:46:55 -04:00
Les Orchard f0ab6bb178 Support a `badges` list alongside optional `update_badges()` method in `badges.py` modules 2013-01-15 17:25:20 -06:00
Les Orchard 1ba530fa75 More moved to multiplayer; admin tweaks; save() changes
- Moving all Nomination logic and tests to django-badger-multiplayer
- Tweaks to make admin nicer
- Moved more of the awarding logic to save() method of models, which
  also works better with Admin and covers more cases in interacting with
  models.
- More protection against double-awarding unique badges
2011-08-02 14:52:17 -04:00
Les Orchard 5632a117b3 Moving / renaming some utils from __init__.py to utils.py 2011-07-31 13:29:21 -04:00
Les Orchard 00564ec24c Badges can have prerequisite badges; auto-award on set completion
- Added prerequisites ManyToManyField on Badge model
- check_prerequisites() method on Badge
- award_to() method calls check_prerequisites() on all Badges pointing
  to the Badge just awarded as a prerequisite
- badger.utils.update_badges() accepts 'prequisites' as a key in
  initialization data, a list of slugs or Badge instances
2011-07-29 21:40:49 -04:00
Les Orchard e806109f1e update badges from code, misc test rearrangements
- Trying out badge creation in code
- Switching titles of some badges used in other tests, because the
  from-fixture and from-code badges get created for all of them.
- misc pep8 reformattings
2011-07-28 00:44:33 -04:00