Changeset 116

Show
Ignore:
Timestamp:
11/14/09 22:12:33 (10 months ago)
Author:
rsbaskin
Message:

Workflow models, mixin, and dummy admin
Includes a migration to add workflow to Articles and MediaItems?

Location:
branches/nando/courant
Files:
6 added
3 modified

Legend:

Unmodified
Added
Removed
  • branches/nando/courant/core/media/models.py

    r102 r116  
    99from courant.core.utils.managers import SubclassManager 
    1010from courant.core.gettag import gettag 
     11from courant.core.nando.workflow.models import WorkflowMixin 
    1112 
    1213import tagging 
     
    4546mptt.register(MediaFolder, order_insertion_by=['name']) 
    4647 
    47 class MediaItem(models.Model): 
     48class MediaItem(WorkflowMixin): 
    4849    """ 
    4950    Abstract base class for all types of media content. Allows placement in 
  • branches/nando/courant/core/news/models.py

    r102 r116  
    2323from courant.core.discussions.moderation import CourantModerator 
    2424from courant.core.dynamic_models.models import DynamicModelBase 
     25from courant.core.nando.workflow.models import WorkflowMixin 
    2526 
    2627 
     
    233234 
    234235 
    235 class Article(DynamicModelBase): 
     236class Article(DynamicModelBase, WorkflowMixin): 
    236237    """ 
    237238    An article, blog post, or other piece of text-based content. 
  • branches/nando/courant/default_settings.py

    r113 r116  
    113113         
    114114        'courant.core.nando.lifecycle', 
     115        'courant.core.nando.workflow', 
    115116) 
    116117