From 0600cbfa418fab8c0333c3506cdb6b933f6a7d69 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Mon, 25 Mar 2013 19:18:33 -0400 Subject: [PATCH] Strip created and modified from Snipt resource - they're not editable, anyway. --- requirements.txt | 2 +- snipts/api.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 80d7330..7f7b559 100644 --- a/requirements.txt +++ b/requirements.txt @@ -14,7 +14,6 @@ lxml parsedatetime psycopg2 pyelasticsearch==0.3 -Pygments python-memcached python-postmark pyyaml @@ -24,6 +23,7 @@ South Werkzeug hg+https://bitbucket.org/ubernostrum/django-registration#egg=django-registration +hg+https://bitbucket.org/birkenfeld/pygments-main#egg=Pygments git+git://github.com/toastdriven/django-haystack.git#egg=django-haystack git+git://github.com/mintchaos/typogrify.git#egg=typogrify diff --git a/snipts/api.py b/snipts/api.py index 649e187..3bbbc7a 100644 --- a/snipts/api.py +++ b/snipts/api.py @@ -389,6 +389,8 @@ class PrivateSniptResource(ModelResource): def obj_update(self, bundle, **kwargs): bundle.data['user'] = bundle.request.user + bundle.data['created'] = None + bundle.data['modified'] = None if type(bundle.data['tags']) in (str, unicode): bundle.data['tags_list'] = bundle.data['tags']