Commits

Mikhail Korobov committed ecd0e8d

Small docs improvements

Comments (0)

Files changed (7)

docs/_build/doctrees/environment.pickle

Binary file modified.

docs/_build/doctrees/index.doctree

Binary file modified.

docs/_build/html/_sources/index.txt

 Templates usually should be placed in ``templates/albums/<app_name>/`` folder. 
 App_name should be the name of queryset model's app as it appears in contenttypes 
 table (e.g. 'auth' for User). It is possible to override templates per-model
-(by placing them in ``templates/albums/<app_name>/<model_name>/`` folder) or to have
-a kind of default fallback templates for several apps (by placing them in 
+(by placing them in ``templates/albums/<app_name>/<model_name>/`` folder) or to 
+have a kind of default fallback templates for several apps (by placing them in 
 ``templates/albums/`` folder).
 
+Common context
+--------------
+
 Each view have at least 2 variables in context:
 
-* ``<template_object_name>``: object for which gallery is attached to (the name of variable
-	is set in PhotoAlbumsSite constructor (:ref:`here<template_object_name>`), default is ``object``)	
+* ``<template_object_name>``: object for which gallery is attached to (the name 
+    of variable is set in PhotoAlbumsSite constructor 
+    (:ref:`here<template_object_name>`), default is ``object``)	
 	
 * ``current_app``: app name, 'albums' by default
 
 
-The views included in django-photo-albums make use of these templates:
-
 Templates
 ---------
 
+The views included in django-photo-albums make use of these 8 templates:
+
+
 * ``show_album.html`` displays entire album
 
 * ``edit_album.html`` displays entire album. Used by edit_album view.
         <img src='{{ image.image }}' alt='{{image.caption}}'>
     {% endfor %}
     
-With sorl-thumbnails::
+With sorl-thumbnail::
     
     {% for image in images %}
         <img src='{% thumbnail image.image 100x50 %}' alt='{{ image.caption }}'>
 	variables in context. ``prev`` and ``next`` are id's of previous and next 
 	(by image.order field) images in gallery.
 
-* ``edit_image.html`` - displays one image for editing purposes. Has ``form``, ``image``, 
-	``prev`` and ``next`` variables in context. ``prev`` and `next` are id's of previous and next 
-	(by image.order field) images in gallery. ``form`` is a form of :ref:`edit_form_class<edit_form_class>` class
+* ``edit_image.html`` - displays one image for editing purposes. Has ``form``, 
+    ``image``, ``prev`` and ``next`` variables in context. ``prev`` and ``next`` 
+    are id's of previous and next (by image.order field) images in gallery. 
+    ``form`` is a form of :ref:`edit_form_class<edit_form_class>` class.
 
 Example::
     
 	:ref:`upload_form_class<upload_form_class>`.
 
 * ``confirm_delete.html`` - displays confirmation dialog for deleting image. 
-	Has ``image`` in context. Should have a form that do POST request to delete view
-	on submit.
+	Has ``image`` in context. Should have a form that do POST request to delete 
+	view on submit.
 	
 	
 Views

docs/_build/html/index.html

 <p>Templates usually should be placed in <tt class="docutils literal"><span class="pre">templates/albums/&lt;app_name&gt;/</span></tt> folder.
 App_name should be the name of queryset model&#8217;s app as it appears in contenttypes
 table (e.g. &#8216;auth&#8217; for User). It is possible to override templates per-model
-(by placing them in <tt class="docutils literal"><span class="pre">templates/albums/&lt;app_name&gt;/&lt;model_name&gt;/</span></tt> folder) or to have
-a kind of default fallback templates for several apps (by placing them in
+(by placing them in <tt class="docutils literal"><span class="pre">templates/albums/&lt;app_name&gt;/&lt;model_name&gt;/</span></tt> folder) or to
+have a kind of default fallback templates for several apps (by placing them in
 <tt class="docutils literal"><span class="pre">templates/albums/</span></tt> folder).</p>
+<div class="section" id="common-context">
+<h4>Common context<a class="headerlink" href="#common-context" title="Permalink to this headline">¶</a></h4>
 <p>Each view have at least 2 variables in context:</p>
 <ul>
 <li><dl class="first docutils">
-<dt><tt class="docutils literal"><span class="pre">&lt;template_object_name&gt;</span></tt>: object for which gallery is attached to (the name of variable</dt>
-<dd><p class="first last">is set in PhotoAlbumsSite constructor (<a class="reference" href="#template-object-name"><em>here</em></a>), default is <tt class="docutils literal"><span class="pre">object</span></tt>)</p>
+<dt><tt class="docutils literal"><span class="pre">&lt;template_object_name&gt;</span></tt>: object for which gallery is attached to (the name</dt>
+<dd><p class="first last">of variable is set in PhotoAlbumsSite constructor
+(<a class="reference" href="#template-object-name"><em>here</em></a>), default is <tt class="docutils literal"><span class="pre">object</span></tt>)</p>
 </dd>
 </dl>
 </li>
 <li><p class="first"><tt class="docutils literal"><span class="pre">current_app</span></tt>: app name, &#8216;albums&#8217; by default</p>
 </li>
 </ul>
-<p>The views included in django-photo-albums make use of these templates:</p>
+</div>
 <div class="section" id="templates">
 <h4>Templates<a class="headerlink" href="#templates" title="Permalink to this headline">¶</a></h4>
+<p>The views included in django-photo-albums make use of these 8 templates:</p>
 <ul>
 <li><p class="first"><tt class="docutils literal"><span class="pre">show_album.html</span></tt> displays entire album</p>
 </li>
     &lt;img src='{{ image.image }}' alt='{{image.caption}}'&gt;
 {% endfor %}</pre>
 </div>
-<p>With sorl-thumbnails:</p>
+<p>With sorl-thumbnail:</p>
 <div class="highlight-python"><pre>{% for image in images %}
     &lt;img src='{% thumbnail image.image 100x50 %}' alt='{{ image.caption }}'&gt;
 {% endfor %}</pre>
 </dl>
 </li>
 <li><dl class="first docutils">
-<dt><tt class="docutils literal"><span class="pre">edit_image.html</span></tt> - displays one image for editing purposes. Has <tt class="docutils literal"><span class="pre">form</span></tt>, <tt class="docutils literal"><span class="pre">image</span></tt>,</dt>
-<dd><p class="first last"><tt class="docutils literal"><span class="pre">prev</span></tt> and <tt class="docutils literal"><span class="pre">next</span></tt> variables in context. <tt class="docutils literal"><span class="pre">prev</span></tt> and <cite>next</cite> are id&#8217;s of previous and next
-(by image.order field) images in gallery. <tt class="docutils literal"><span class="pre">form</span></tt> is a form of <a class="reference" href="#edit-form-class"><em>edit_form_class</em></a> class</p>
+<dt><tt class="docutils literal"><span class="pre">edit_image.html</span></tt> - displays one image for editing purposes. Has <tt class="docutils literal"><span class="pre">form</span></tt>,</dt>
+<dd><p class="first last"><tt class="docutils literal"><span class="pre">image</span></tt>, <tt class="docutils literal"><span class="pre">prev</span></tt> and <tt class="docutils literal"><span class="pre">next</span></tt> variables in context. <tt class="docutils literal"><span class="pre">prev</span></tt> and <tt class="docutils literal"><span class="pre">next</span></tt>
+are id&#8217;s of previous and next (by image.order field) images in gallery.
+<tt class="docutils literal"><span class="pre">form</span></tt> is a form of <a class="reference" href="#edit-form-class"><em>edit_form_class</em></a> class.</p>
 </dd>
 </dl>
 </li>
 </li>
 <li><dl class="first docutils">
 <dt><tt class="docutils literal"><span class="pre">confirm_delete.html</span></tt> - displays confirmation dialog for deleting image.</dt>
-<dd><p class="first last">Has <tt class="docutils literal"><span class="pre">image</span></tt> in context. Should have a form that do POST request to delete view
-on submit.</p>
+<dd><p class="first last">Has <tt class="docutils literal"><span class="pre">image</span></tt> in context. Should have a form that do POST request to delete
+view on submit.</p>
 </dd>
 </dl>
 </li>
 <h2>Testing<a class="headerlink" href="#testing" title="Permalink to this headline">¶</a></h2>
 <div class="section" id="module-photo_albums.test_utils">
 <h3>Integration testing<a class="headerlink" href="#module-photo_albums.test_utils" title="Permalink to this headline">¶</a></h3>
-<p>django-photo-albums provides base class (photo_albums.test_utils.AlbumTest) for 
-writing integration tests for app instances.</p>
+<p>django-photo-albums provides base class (photo_albums.test_utils.AlbumTest) 
+for writing integration tests for app instances.</p>
 <p>The example usage:</p>
 <div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">accounts.urls</span> <span class="kn">import</span> <span class="n">accounts_photo_site</span>
 <span class="kn">from</span> <span class="nn">photo_albums</span> <span class="kn">import</span> <span class="n">test_utils</span>
     <span class="c"># if slugs are in use:</span>
     <span class="c"># album_for_id = &#39;my_object_slug&#39;</span>
     
-    <span class="c"># id&#39;s of various images: 2 images in album (second is nedded if tou want </span>
-    <span class="c"># to test reordering) and one image in other album to test permission checks</span>
+    <span class="c"># id&#39;s of various images: 2 images in album (second is nedded if you</span>
+    <span class="c"># want to test reordering) and one image in other album to test</span>
+    <span class="c"># permission checks</span>
     <span class="n">image_in_album_id</span> <span class="o">=</span> <span class="mf">48</span>
     <span class="n">image2_in_album_id</span> <span class="o">=</span> <span class="mf">66</span>
     <span class="n">image_in_other_album_id</span> <span class="o">=</span> <span class="mf">42</span>    
 <dl class="attribute">
 <dt id="photo_albums.test_utils.AlbumTest.image_in_other_album_id">
 <tt class="descname">image_in_other_album_id</tt><a class="headerlink" href="#photo_albums.test_utils.AlbumTest.image_in_other_album_id" title="Permalink to this definition">¶</a></dt>
-<dd>id&#8217;s of various images: 2 images in album (second is nedded if tou want
-to test reordering) and one image in other album to test permission checks</dd></dl>
+<dd>id&#8217;s of various images: 2 images in album (second is nedded if tou
+want to test reordering) and one image in other album to test
+permission checks</dd></dl>
 
 <dl class="attribute">
 <dt id="photo_albums.test_utils.AlbumTest.password">
 <li><a class="reference" href="#basic-use">Basic use</a><ul>
 <li><a class="reference" href="#module-photo_albums.urls">PhotoAlbumSite</a></li>
 <li><a class="reference" href="#templates-used-by-django-photo-albums">Templates used by django-photo-albums</a><ul>
+<li><a class="reference" href="#common-context">Common context</a></li>
 <li><a class="reference" href="#templates">Templates</a></li>
 </ul>
 </li>

docs/_build/html/searchindex.js

-Search.setIndex({desctypes:{"0":"attribute","1":"class","2":"method","3":"function"},terms:{pluggabl:0,has_edit_permiss:0,obiwanu:0,formset:0,all:0,prefix:[],subclass:0,follow:0,alt:0,photo_album:0,depend:0,string:0,fals:0,account:0,util:[],context_processor:0,veri:0,contenttyp:0,ref:[],list:0,upload:0,iter:0,pleas:0,unmark:0,accounts_photo_sit:0,second:0,pass:0,index:[],appear:0,ned:0,delet:0,version:0,method:0,gener:0,here:0,errorlist:[],upload_form_class:0,becom:0,valu:0,search:[],error_class:[],vasia:0,"0x1a1bb30":[],app_util:[],chang:0,extra:0,modul:0,href:0,instal:0,from:0,current_app:0,next:0,prev:0,type:0,reorder:0,peopl:0,relat:0,enhanc:0,templat:0,sorl:0,obj:0,must:0,none:0,edit_imag:0,alia:[],setup:0,work:0,uniqu:0,annoi:0,can:0,purpos:0,overrid:0,edit_form_class:0,want:0,view_us:[],indic:[],tag:0,smth:0,login_requir:[],alwai:0,multipl:0,attachedimageform:0,"__init__":[],instead:0,photoformset:0,clone:0,mai:0,data:0,"0x1a19b70":[],django:0,issu:0,object_regex:0,allow:0,media:[],callabl:0,fallback:0,order:0,becaus:0,clear_main_imag:0,"0x1a1caf0":[],paramet:0,write:0,thank:0,img:0,html:0,main:0,edit_album:0,good:0,"return":0,python:0,auth:0,mention:0,name:0,edit:0,photoalbumssit:0,revers:0,each:0,attachedimag:[],show_imag:0,runtest:0,meta:[],my_fixtur:0,album:0,upload_imag:0,test_auth_view:0,content:[],modelform:0,urlpattern:0,empty_permit:[],base:0,org:0,caption:0,place:0,urlconf:0,lambda:0,instance_nam:0,template_nam:0,onc:0,alreadi:0,installed_app:0,auto_id:[],differ:0,account_imag:[],least:0,tou:0,attach:0,"0x1a1aaf0":[],accept:0,test_forbidden_view:0,scheme:[],option:0,namespac:0,setuptool:0,kind:0,provid:0,initi:[],"0x1a14af0":[],queryset:0,ani:0,have:0,tabl:0,need:0,dedic:0,exclud:0,object_id:0,note:0,which:0,necesseri:0,album_sit:0,endfor:0,usernam:0,object:0,galleri:0,label_suffix:[],regular:0,deploi:0,lookup_field:0,"class":0,don:0,url:0,request:0,"100x50":0,enctyp:0,show:0,get_template_nam:[],model_nam:0,permiss:0,redirect:0,should:0,dict:0,folder:0,extra_context:0,variou:0,delete_imag:0,express:0,set_as_main_imag:0,report:0,requir:0,useralbumtest:0,attachedimageformformset:[],stuff:0,integr:0,contain:0,where:0,view:0,set:0,methodnam:0,see:[],multipart:0,testcas:0,modelformset:0,statu:0,correctli:0,pattern:0,user:0,thumb:[],won:0,"import":0,thumbnail:0,extend:[],image_id:0,entir:0,addit:0,behaviour:0,etc:0,excluded_view:0,context:0,load:0,upload_formset_class:0,reorder_imag:0,assum:0,mark:0,basic:0,imag:0,bulk:0,look:0,defin:0,fixtur:0,endblock:[],them:0,kwarg:0,sever:0,decor:[],welcom:0,perform:0,suggest:0,make:0,same:[],instanc:0,document:0,complet:0,http:0,action:0,rais:0,album_us:0,userprofile__slug:0,test_help:0,upload_main_imag:0,exampl:0,thi:0,model:0,usual:0,photo:0,test_public_view:0,test_util:0,thees:[],easi:0,except:0,add:0,input:0,save:0,app:0,photoalbumsit:0,password:0,template_object_nam:0,like:0,"0x1a1baf0":[],albumtest:0,album_for_id:0,necessari:0,page:[],test_reord:0,syncdb:0,librari:0,confirm:0,per:0,tracker:0,pluggablesit:[],imageeditform:0,id_:[],previou:0,run:0,usag:0,step:0,post:0,viewtest:0,slug:0,plug:0,src:0,kmike:0,manag:0,user_imag:0,dialog:0,constructor:0,image_in_other_album_id:0,block:[],image2_in_album_id:0,photo_smal:[],set_image_ord:0,easy_instal:0,your:0,submit:0,custom:[],avail:0,show_album:0,includ:0,suit:0,"function":0,form:0,"0x1a19bb0":[],link:0,"true":0,bug:0,possibl:0,"default":0,autoclass:[],displai:0,site:0,otherwis:0,confirm_delet:0,app_nam:0,featur:0,creat:0,"0x1a1bb70":[],exist:0,file:[],pip:0,check:0,"_custom_url_schem":[],field:0,other:0,lookup:0,test:0,you:0,variabl:0,image_in_album_id:0,get_profil:[],svn:0,my_object_slug:0,bitbucket:0,rule:0,generic_imag:0,generic_util:0},titles:["django-photo-albums&#8217;s documentation"],modules:{"photo_albums.views":0,"photo_albums.urls":0,"photo_albums.test_utils":0},descrefs:{"photo_albums.views":{upload_images:[0,0],edit_album:[0,0],set_as_main_image:[0,0],edit_image:[0,0],upload_main_image:[0,0],delete_image:[0,0],show_album:[0,3],show_image:[0,3],clear_main_image:[0,0]},"photo_albums.test_utils.AlbumTest":{username:[0,0],album_for_id:[0,0],image_in_other_album_id:[0,0],excluded_views:[0,0],test_auth_views:[0,2],image_in_album_id:[0,0],album_site:[0,0],test_public_views:[0,2],test_reorder:[0,2],test_forbidden_views:[0,2],fixtures:[0,0],password:[0,0],check:[0,2],image2_in_album_id:[0,0]},"photo_albums.urls":{PhotoAlbumSite:[0,1]},"photo_albums.test_utils":{AlbumTest:[0,1]}},filenames:["index"]})
+Search.setIndex({desctypes:{"0":"attribute","1":"class","2":"method","3":"function"},terms:{pluggabl:0,has_edit_permiss:0,obiwanu:0,formset:0,all:0,prefix:[],subclass:0,follow:0,alt:0,photo_album:0,depend:0,string:0,fals:0,account:0,util:[],context_processor:0,veri:0,contenttyp:0,ref:[],list:0,upload:0,iter:0,pleas:0,unmark:0,accounts_photo_sit:0,second:0,pass:0,index:[],appear:0,ned:0,delet:0,version:0,method:0,gener:0,here:0,errorlist:[],upload_form_class:0,becom:0,valu:0,search:[],error_class:[],vasia:0,"0x1a1bb30":[],app_util:[],chang:0,extra:0,modul:0,href:0,instal:0,from:0,current_app:0,next:0,prev:0,type:0,reorder:0,peopl:0,relat:0,enhanc:0,accept:0,sorl:0,obj:0,must:0,none:0,edit_imag:0,alia:[],setup:0,work:0,uniqu:0,annoi:0,can:0,purpos:0,overrid:0,edit_form_class:0,want:0,view_us:[],templat:0,tag:0,smth:0,login_requir:[],alwai:0,multipl:0,attachedimageform:0,"__init__":[],instead:0,photoformset:0,clone:0,mai:0,data:0,"0x1a19b70":[],django:0,issu:0,object_regex:0,allow:0,media:[],callabl:0,fallback:0,order:0,becaus:0,clear_main_imag:0,"0x1a1caf0":[],paramet:0,write:0,thank:0,img:0,html:0,main:0,edit_album:0,good:0,"return":0,python:0,auth:0,mention:0,name:0,edit:0,photoalbumssit:0,revers:0,each:0,attachedimag:[],show_imag:0,runtest:0,meta:[],my_fixtur:0,album:0,upload_imag:0,test_auth_view:0,content:[],modelform:0,integr:0,urlpattern:0,empty_permit:[],base:0,org:0,caption:0,place:0,urlconf:0,lambda:0,instance_nam:0,template_nam:0,onc:0,alreadi:0,installed_app:0,auto_id:[],differ:0,account_imag:[],least:0,tou:0,attach:0,"0x1a1aaf0":[],test_forbidden_view:0,scheme:[],option:0,namespac:0,setuptool:0,kind:0,provid:0,initi:[],"0x1a14af0":[],queryset:0,ani:0,have:0,tabl:0,need:0,dedic:0,exclud:0,object_id:0,note:0,indic:[],necesseri:0,album_sit:0,endfor:0,usernam:0,object:0,galleri:0,label_suffix:[],regular:0,deploi:0,lookup_field:0,"class":0,don:0,url:0,request:0,"100x50":0,enctyp:0,show:0,get_template_nam:[],model_nam:0,permiss:0,redirect:0,should:0,dict:0,folder:0,extra_context:0,variou:0,delete_imag:0,express:0,set_as_main_imag:0,report:0,requir:0,useralbumtest:0,attachedimageformformset:[],stuff:0,common:0,contain:0,where:0,view:0,set:0,methodnam:0,see:[],multipart:0,testcas:0,modelformset:0,statu:0,correctli:0,pattern:0,user:0,thumb:[],won:0,"import":0,thumbnail:0,extend:[],image_id:0,entir:0,addit:0,behaviour:0,etc:0,excluded_view:0,context:0,load:0,upload_formset_class:0,reorder_imag:0,assum:0,mark:0,basic:0,imag:0,bulk:0,look:0,defin:0,fixtur:0,endblock:[],them:0,kwarg:0,sever:0,decor:[],welcom:0,perform:0,suggest:0,make:0,same:[],instanc:0,document:0,complet:0,http:0,action:0,rais:0,album_us:0,userprofile__slug:0,test_help:0,upload_main_imag:0,exampl:0,thi:0,model:0,usual:0,photo:0,test_public_view:0,test_util:0,thees:[],easi:0,except:0,add:0,input:0,save:0,app:0,photoalbumsit:0,which:0,password:0,template_object_nam:0,like:0,"0x1a1baf0":[],albumtest:0,album_for_id:0,necessari:0,page:[],test_reord:0,syncdb:0,librari:0,confirm:0,per:0,tracker:0,pluggablesit:[],imageeditform:0,id_:[],previou:0,run:0,usag:0,step:0,post:0,viewtest:0,slug:0,plug:0,src:0,kmike:0,manag:0,user_imag:0,dialog:0,constructor:0,image_in_other_album_id:0,block:[],image2_in_album_id:0,photo_smal:[],set_image_ord:0,easy_instal:0,your:0,submit:0,custom:[],avail:0,show_album:0,includ:0,suit:0,"function":0,form:0,"0x1a19bb0":[],link:0,"true":0,bug:0,possibl:0,"default":0,autoclass:[],displai:0,site:0,otherwis:0,confirm_delet:0,app_nam:0,featur:0,creat:0,"0x1a1bb70":[],exist:0,file:[],pip:0,check:0,"_custom_url_schem":[],field:0,other:0,lookup:0,test:0,you:0,variabl:0,image_in_album_id:0,get_profil:[],svn:0,my_object_slug:0,bitbucket:0,rule:0,generic_imag:0,generic_util:0},titles:["django-photo-albums&#8217;s documentation"],modules:{"photo_albums.views":0,"photo_albums.urls":0,"photo_albums.test_utils":0},descrefs:{"photo_albums.views":{upload_images:[0,0],edit_album:[0,0],set_as_main_image:[0,0],edit_image:[0,0],upload_main_image:[0,0],delete_image:[0,0],show_album:[0,3],show_image:[0,3],clear_main_image:[0,0]},"photo_albums.test_utils.AlbumTest":{username:[0,0],album_for_id:[0,0],image_in_other_album_id:[0,0],excluded_views:[0,0],test_auth_views:[0,2],image_in_album_id:[0,0],album_site:[0,0],test_public_views:[0,2],test_reorder:[0,2],test_forbidden_views:[0,2],fixtures:[0,0],password:[0,0],check:[0,2],image2_in_album_id:[0,0]},"photo_albums.urls":{PhotoAlbumSite:[0,1]},"photo_albums.test_utils":{AlbumTest:[0,1]}},filenames:["index"]})
 Templates usually should be placed in ``templates/albums/<app_name>/`` folder. 
 App_name should be the name of queryset model's app as it appears in contenttypes 
 table (e.g. 'auth' for User). It is possible to override templates per-model
-(by placing them in ``templates/albums/<app_name>/<model_name>/`` folder) or to have
-a kind of default fallback templates for several apps (by placing them in 
+(by placing them in ``templates/albums/<app_name>/<model_name>/`` folder) or to 
+have a kind of default fallback templates for several apps (by placing them in 
 ``templates/albums/`` folder).
 
+Common context
+--------------
+
 Each view have at least 2 variables in context:
 
-* ``<template_object_name>``: object for which gallery is attached to (the name of variable
-	is set in PhotoAlbumsSite constructor (:ref:`here<template_object_name>`), default is ``object``)	
+* ``<template_object_name>``: object for which gallery is attached to (the name 
+    of variable is set in PhotoAlbumsSite constructor 
+    (:ref:`here<template_object_name>`), default is ``object``)	
 	
 * ``current_app``: app name, 'albums' by default
 
 
-The views included in django-photo-albums make use of these templates:
-
 Templates
 ---------
 
+The views included in django-photo-albums make use of these 8 templates:
+
+
 * ``show_album.html`` displays entire album
 
 * ``edit_album.html`` displays entire album. Used by edit_album view.
         <img src='{{ image.image }}' alt='{{image.caption}}'>
     {% endfor %}
     
-With sorl-thumbnails::
+With sorl-thumbnail::
     
     {% for image in images %}
         <img src='{% thumbnail image.image 100x50 %}' alt='{{ image.caption }}'>
 	variables in context. ``prev`` and ``next`` are id's of previous and next 
 	(by image.order field) images in gallery.
 
-* ``edit_image.html`` - displays one image for editing purposes. Has ``form``, ``image``, 
-	``prev`` and ``next`` variables in context. ``prev`` and `next` are id's of previous and next 
-	(by image.order field) images in gallery. ``form`` is a form of :ref:`edit_form_class<edit_form_class>` class
+* ``edit_image.html`` - displays one image for editing purposes. Has ``form``, 
+    ``image``, ``prev`` and ``next`` variables in context. ``prev`` and ``next`` 
+    are id's of previous and next (by image.order field) images in gallery. 
+    ``form`` is a form of :ref:`edit_form_class<edit_form_class>` class.
 
 Example::
     
 	:ref:`upload_form_class<upload_form_class>`.
 
 * ``confirm_delete.html`` - displays confirmation dialog for deleting image. 
-	Has ``image`` in context. Should have a form that do POST request to delete view
-	on submit.
+	Has ``image`` in context. Should have a form that do POST request to delete 
+	view on submit.
 	
 	
 Views

photo_albums/test_utils.py

 #coding: utf-8
 '''
-    django-photo-albums provides base class (photo_albums.test_utils.AlbumTest) for 
-    writing integration tests for app instances. 
+    django-photo-albums provides base class (photo_albums.test_utils.AlbumTest) 
+    for writing integration tests for app instances. 
     
     The example usage::
     
             # if slugs are in use:
             # album_for_id = 'my_object_slug'
             
-            # id's of various images: 2 images in album (second is nedded if tou want 
-            # to test reordering) and one image in other album to test permission checks
+            # id's of various images: 2 images in album (second is nedded if you
+            # want to test reordering) and one image in other album to test
+            # permission checks
             image_in_album_id = 48
             image2_in_album_id = 66
             image_in_other_album_id = 42    
     " "
     
     image_in_other_album_id = None
-    """ id's of various images: 2 images in album (second is nedded if tou want
-        to test reordering) and one image in other album to test permission checks
+    """ id's of various images: 2 images in album (second is nedded if tou 
+        want to test reordering) and one image in other album to test 
+        permission checks
     """
     
     non_existing_image_id = 0