Strip created and modified from Snipt resource - they're not editable, anyway.
parent
05e66c3d28
commit
0600cbfa41
|
@ -14,7 +14,6 @@ lxml
|
||||||
parsedatetime
|
parsedatetime
|
||||||
psycopg2
|
psycopg2
|
||||||
pyelasticsearch==0.3
|
pyelasticsearch==0.3
|
||||||
Pygments
|
|
||||||
python-memcached
|
python-memcached
|
||||||
python-postmark
|
python-postmark
|
||||||
pyyaml
|
pyyaml
|
||||||
|
@ -24,6 +23,7 @@ South
|
||||||
Werkzeug
|
Werkzeug
|
||||||
|
|
||||||
hg+https://bitbucket.org/ubernostrum/django-registration#egg=django-registration
|
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/toastdriven/django-haystack.git#egg=django-haystack
|
||||||
git+git://github.com/mintchaos/typogrify.git#egg=typogrify
|
git+git://github.com/mintchaos/typogrify.git#egg=typogrify
|
||||||
|
|
|
@ -389,6 +389,8 @@ class PrivateSniptResource(ModelResource):
|
||||||
|
|
||||||
def obj_update(self, bundle, **kwargs):
|
def obj_update(self, bundle, **kwargs):
|
||||||
bundle.data['user'] = bundle.request.user
|
bundle.data['user'] = bundle.request.user
|
||||||
|
bundle.data['created'] = None
|
||||||
|
bundle.data['modified'] = None
|
||||||
|
|
||||||
if type(bundle.data['tags']) in (str, unicode):
|
if type(bundle.data['tags']) in (str, unicode):
|
||||||
bundle.data['tags_list'] = bundle.data['tags']
|
bundle.data['tags_list'] = bundle.data['tags']
|
||||||
|
|
Loading…
Reference in New Issue