{"id":158155,"date":"2012-11-10T19:06:03","date_gmt":"2012-11-10T15:06:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=158155"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=158155","title":{"rendered":"<span class=\"post_title\">Inline \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 Django<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0432\u0441\u0442\u0430\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u0435\u043b\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438 \u043d\u0435 \u043f\u0440\u044b\u0433\u0430\u043b\u0438 \u043c\u0435\u0436\u0434\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u043c\u0438 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u0432, \u043d\u0430\u0448\u043b\u0438 \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 <a href=\"http:\/\/pypi.python.org\/pypi\/django-inplaceedit\">django-inplaceedit<\/a>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445.<br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h5>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438\u0437 PyPI:<\/h5>\n<p>  <\/p>\n<pre><code class=\"django\">pip install django-inplaceedit <\/code><\/pre>\n<p>  <\/p>\n<h5>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0432 settings.py:<\/h5>\n<p>  <\/p>\n<pre><code class=\"django\">INSTALLED_APPS = (     ....     'inplaceeditform', ) <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"django\">TEMPLATE_CONTEXT_PROCESSORS = (     #...#     'django.core.context_processors.request',     #...# ) <\/code><\/pre>\n<p>  \u042d\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438, \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0438\u0445 \u0431\u043e\u043b\u044c\u0448\u0435   <\/p>\n<pre><code class=\"django\">ADAPTOR_INPLACEEDIT_EDIT = 'my_app.perms.MyAdaptorEditInline' #  &quot;\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0441\u0432\u043e\u0439 perms.py, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 - \u043d\u0438\u0436\u0435&quot; INPLACEEDIT_DISABLE_CLICK = False # &quot;\u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0436\u0430\u0442\u0438\u0435\u043c Enter&quot; THUMBNAIL_DEBUG = True INPLACEEDIT_EVENT = &quot;click&quot; # &quot;\u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f&quot; <\/code><\/pre>\n<p>  <\/p>\n<h6>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0441\u0432\u043e\u0438\u0445 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0445.<\/h6>\n<p>  \u0417\u0430\u0447\u0435\u043c \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f? \u0415\u0441\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f <a href=\"http:\/\/pypi.python.org\/pypi\/django-inplaceedit\">django-inplaceedit<\/a>, <a href=\"http:\/\/pypi.python.org\/pypi\/django-inplaceedit-extra-fields\">django-inplaceedit-extra-fields<\/a> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0449\u0435\u0435 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 AutoCompleteManyToManyField \u0438 AutoCompleteForeingKeyField. \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u043e\u0432 \u0432 \u043e\u0431\u043e\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u043c\u043e\u0433\u0443\u0442 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c \u0438 \u0442\u043e\u0433\u0434\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0445 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c. \u0418\u043b\u0438 \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439 \u0430\u0434\u0430\u043f\u0442\u0435\u0440.   <\/p>\n<pre><code class=\"django\">ADAPTOR_INPLACEEDIT = {'auto_fk': 'inplaceeditform_extra_fields.fields.AdaptorAutoCompleteForeingKeyField',                        'auto_m2m': 'inplaceeditform_extra_fields.fields.AdaptorAutoCompleteManyToManyField',                        'image_thumb': 'inplaceeditform_extra_fields.fields.AdaptorImageThumbnailField',                        'tiny': 'inplaceeditform_extra_fields.fields.AdaptorTinyMCEField',} <\/code><\/pre>\n<p>  <\/p>\n<h5>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432 base.html<\/h5>\n<p>  <\/p>\n<pre><code class=\"django\">{% load inplace_edit %} {% inplace_toolbar %} or {% inplace_static %} <\/code><\/pre>\n<p>  <\/p>\n<h5>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432 urls.py<\/h5>\n<p>  <\/p>\n<pre><code class=\"django\">urlpatterns = patterns('',     #...#     (r'^inplaceeditform\/', include('inplaceeditform.urls')),     #...# ) <\/code><\/pre>\n<p>  <\/p>\n<h4>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/h4>\n<p>  \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e django-inplaceedit \u043c\u043e\u0436\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e superuser. \u042d\u0442\u043e \u043b\u0435\u0433\u043a\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u0432. \u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u0432\u044b\u0448\u0435 \u043c\u044b \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u043b\u0438  <\/p>\n<pre><code class=\"django\"> ADAPTOR_INPLACEEDIT_EDIT = 'my_app.perms.MyAdaptorEditInline'  <\/code><\/pre>\n<p> \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435.<br \/>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b perms.py \u0432\u043d\u0443\u0442\u0440\u0438 my_app. \u0412\u043e\u0442 \u0444\u0430\u0439\u043b \u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438  <\/p>\n<pre><code class=\"django\">class MyAdaptorEditInline(object):      @classmethod     def can_edit(cls, adaptor_field):         user = adaptor_field.request.user         obj = adaptor_field.obj         can_edit = False         if user.is_anonymous():             pass         elif user.is_superuser:             can_edit = True         else:            can_edit = has_permission(obj, user, 'edit')         return can_edit <\/code><\/pre>\n<p> \u0443 \u0441\u0435\u0431\u044f \u0436\u0435 \u044f \u0432\u0441\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0432\u044b\u043d\u0435\u0441 \u0434\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0441 inlineedit, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0439 \u0444\u0430\u0439\u043b \u043f\u0440\u043e\u0449\u0435  <\/p>\n<pre><code class=\"django\"> class MyAdaptorEditInline(object):      @classmethod     def can_edit(cls, adaptor_field):         can_edit = True         return can_edit <\/code><\/pre>\n<h4>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/h4>\n<p>  <\/p>\n<pre><code class=\"html\">{% extends &quot;base.html&quot; %} {% load i18n inplace_edit %} ... &lt;fieldset&gt;                 &lt;legend&gt;&lt;span class=&quot;has-tip tip-top&quot; data-width=&quot;300&quot; title=&quot;\u042d\u0442\u043e\u0442 \u0431\u043b\u043e\u043a \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0412\u0430\u0448\u0443 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.&quot;&gt;&lt;wave class=&quot;social foundicon-torso&quot;&gt;&lt;p&gt;\u041b\u0438\u0447\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435&lt;\/p&gt;&lt;\/wave&gt;&lt;\/span&gt;&lt;\/legend&gt;                 &lt;ul class=&quot;square&quot;&gt;                     &lt;li&gt;&lt;p class=&quot;definition&quot;&gt;\u0424\u0418\u041e: &lt;\/p&gt;&lt;p&gt;{% inplace_edit &quot;seeker.user.first_name&quot;  adaptor=&quot;tiny&quot;,  auto_height=1, auto_width=1, edit_empty_value=&quot;\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f&quot; %}&lt;\/p&gt;&lt;\/li&gt;                     &lt;li&gt;&lt;p class=&quot;definition&quot;&gt;\u0413\u043e\u0434 \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f: &lt;\/p&gt;&lt;p&gt;{% inplace_edit &quot;seeker.age&quot; adaptor=&quot;text&quot;,  auto_height=1, auto_width=1, edit_empty_value=&quot;\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f&quot; %}&lt;\/p&gt;&lt;\/li&gt;                     &lt;li&gt;&lt;p class=&quot;definition&quot;&gt;\u0413\u043e\u0440\u043e\u0434 \u043f\u0440\u043e\u0436\u0438\u0432\u0430\u043d\u0438\u044f: &lt;\/p&gt;&lt;p class=&quot;city&quot;&gt;{% inplace_edit &quot;seeker.city&quot;  adaptor=&quot;text&quot;,  auto_height=1, auto_width=1, edit_empty_value=&quot;\u0413\u043e\u0440\u043e\u0434&quot; %}&lt;\/p&gt;&lt;\/li&gt;                  &lt;\/ul&gt;             &lt;\/fieldset&gt; <\/code><\/pre>\n<p>  \u0418 \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0434\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/21c\/210\/a16\/21c210a169123ab8d50453c6a81ea158.png\"\/><br \/>  \u0412 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/949\/17a\/182\/94917a1823deb81986a10b07aad12e26.png\"\/><br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442 \u0432\u0441\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 textarea, \u0442\u0430\u043c \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f WYSIWYG \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440<br \/>  \u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/467\/4d0\/f16\/4674d0f16ddb243f1e0a5bebeb8479fb.png\"\/><br \/>  \u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/da7\/fbd\/b7e\/da7fbdb7edeff003e607f3c8a08a9200.png\"\/><br \/>  \u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u0435:  <\/p>\n<pre><code class=\"django\">{% inplace_edit &quot;seeker.resume_workexp|safe&quot; filters_to_show=&quot;safe&quot;, adaptor=&quot;tiny&quot;, tag_name_cover=&quot;div&quot;, auto_height=1, auto_width=1, edit_empty_value=&quot;\u041a\u043b\u0438\u043a\u043d\u0438\u0442\u0435 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f&quot; %} <\/code><\/pre>\n<p>  \u0418 \u043f\u0440\u0438\u0447\u0435\u043c \u044d\u0442\u043e \u043e\u0434\u043d\u0430 \u0438 \u0442\u0430\u0436\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430, \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0438 \u043d\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u0445, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0432\u0441\u043f\u043b\u044b\u0432\u0430\u044e\u0449\u0438\u0445 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043e\u043a \u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c \u0441 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u0430\u0437\u0430.<\/p>\n<h4>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b<\/h4>\n<p>  \u0412 \u0434\u0440\u0443\u0433\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0430\u0434\u0430\u043f\u0442\u0435\u0440 image_thumb, \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a. \u041f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432\u044b\u0432\u0430\u043b\u0438\u043b\u0430\u0441\u044c \u043e\u0448\u0438\u0431\u043a\u0430:  <\/p>\n<pre><code class=\"django\">TemplateSyntaxError at \/adverts\/cabinet\/ Invalid block tag: \u2018endthumbnail\u2019, expected \u2018elif\u2019,'else\u2019 \u0438\u043b\u0438 \u2018endif\u2019 <\/code><\/pre>\n<p>  <\/p>\n<h6>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/h6>\n<p>  \u041e\u0448\u0438\u0431\u043a\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0438\u0437-\u0437\u0430 \u2018sorl.thumbnail\u2019 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 django-inplaceedit-extra-fields. \u041c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0430\u0448\u043b\u0438 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430\u0445 django-inplaceedit-extra-fields \u0433\u0434\u0435 \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0437 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f sorl.thumbnail \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u043b\u0438 \u0432\u044b\u0437\u043e\u0432. <br \/>  \u041f\u0440\u0430\u0432\u043a\u0430 fields.py \u043f\u0430\u043a\u0435\u0442\u0430 django-inplaceedit-extra-fields, \u0441\u0442\u0440\u043e\u043a\u0430 96:  <\/p>\n<pre><code class=\"django\">from sorl import thumbnail # \u043c\u0435\u043d\u044f\u0435\u043c \u043d\u0430  from easy_thumbnails import thumbnail  # \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c easy_thumbnails  <\/code><\/pre>\n<p>  \u0421\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 Github:<br \/>  <a href=\"https:\/\/github.com\/Yaco-Sistemas\/django-inplaceedit\">django-inplaceedit<\/a><br \/>  <a href=\"https:\/\/github.com\/goinnn\/django-inplaceedit-extra-fields\">django-inplaceedit-extra-fields<\/a>    \t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/158155\/\"> http:\/\/habrahabr.ru\/post\/158155\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u0432\u0441\u0442\u0430\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0441\u0440\u0430\u0437\u0443 \u0432\u0438\u0434\u0435\u043b\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438 \u043d\u0435 \u043f\u0440\u044b\u0433\u0430\u043b\u0438 \u043c\u0435\u0436\u0434\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u043c\u0438 \u0434\u043b\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0433\u0443\u0433\u043b\u0438\u0432, \u043d\u0430\u0448\u043b\u0438 \u043e\u0442\u043b\u0438\u0447\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 <a href=\"http:\/\/pypi.python.org\/pypi\/django-inplaceedit\">django-inplaceedit<\/a>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-158155","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/158155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=158155"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/158155\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=158155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=158155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=158155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}