From 9cef3b85e862e50a94db4afa189c78a7972fa7cd Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Fri, 3 Apr 2015 12:27:02 -0400 Subject: [PATCH] Omit stylized option. --- snipts/api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/snipts/api.py b/snipts/api.py index 009edd0..bb9c613 100644 --- a/snipts/api.py +++ b/snipts/api.py @@ -227,6 +227,9 @@ class PublicSniptResource(ModelResource): if 'omit_code' in bundle.request.GET: del bundle.data['code'] + if 'omit_stylized' in bundle.request.GET: + del bundle.data['stylized'] + return bundle def build_filters(self, filters=None):