Ticket #1669: CPSDocument-upgrade.py.diff

File CPSDocument-upgrade.py.diff, 506 bytes (added by ybastide, 4 years ago)

Suggested patch

  • CPSDocument/upgrade.py

    old new  
    160160        # This is CPS 3.2, and Document is not even Flexible. 
    161161        # Can't upgrade 
    162162        return False 
     163    if 'news' not in doc_type.schemas and 'news' not in doc_type.layouts: 
     164        # Alredy upgraded: 
     165        return False 
    163166    return True 
    164167 
    165168def upgrade_338_340_newsitem_to_flex(context):