caffeinehit/django-oauth2-provider — pull request #48 by ross (2013-11-03 21:12:26+00:00)
Title: implement OAUTH_CLEAN_EXPIRED, clean as you go

this avoids keeping around unneeded/no-longer usable objects. it's optional
defaulting to False, the current behavior.

adds a setting OAUTH_CLEAN_EXPIRED that optionally cleans out objects as
they're expired which should keep the size of the grant, access, and refresh
token tables in check.

once grants are used they are deleted. and once a RefreshToken is used both
it and its corresponding AccessToken are deleted.

closely related to #24. gets rid of one of the two major sources of objects to be cleaned.