Changes between Version 7 and Version 8 of CookBookCategoryDataModel


Ignore:
Timestamp:
08/21/2005 06:11:32 AM (10 years ago)
Author:
aCC
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CookBookCategoryDataModel

    v7 v8  
    2727            p_list.extend(more)
    2828        if cat_obj == self and p_list:
     29
    2930            p_list.reverse()
    3031        return p_list
     
    117118
    118119http://www.djangoproject.com/documentation/models/m2o_recursive/
     120
     121== Comments ==
     122
     123This example has a bug: the field "category_parents" gets not updated, if a parent category was moved.
     124
     125E.g. you create the following categories:
     126{{{
     127firstcat
     128secondcat
     129secondcat :: thirdcat
     130}}}
     131
     132
     133Now you move "secondcat" under "firstcat". The correct display would be:
     134{{{
     135firstcat
     136firstcat :: secondcat
     137firstcat :: secondcat :: thirdcat
     138}}}
     139
     140
     141But because "category_parents" of thirdcat was not updated, you see:
     142{{{
     143firstcat
     144firstcat :: secondcat
     145secondcat :: thirdcat
     146}}}
     147
     148
     149In the database it is correct, just the display is incorrect.
     150
     151Can anybody fix this?
Back to Top