Skip to content

Instantly share code, notes, and snippets.

@db0company
Created May 8, 2014 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save db0company/d6810ceee02575bf3d43 to your computer and use it in GitHub Desktop.
Save db0company/d6810ceee02575bf3d43 to your computer and use it in GitHub Desktop.
class AchievementStatusViewSet(viewsets.ModelViewSet):
queryset = api_models.AchievementStatus.objects.all()
serializer_class = api_serializers.AchievementStatusSerializer
@action()
def generate_activity(self, request, pk=None):
api_models.PlayerActivity.objects.create()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment