Strip created and modified from Snipt resource - they're not editable, anyway.

master
Nick Sergeant 2013-03-25 19:18:33 -04:00
parent 05e66c3d28
commit 0600cbfa41
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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']