Commits

Jacco Flenter  committed 1aa4eff

import fixes

  • Participants
  • Parent commits bdd2ae8

Comments (0)

Files changed (2)

File scm_core/managers.py

-from .models import PUBLISH_STATE_PUBLISHED
+from django.db import models
+from django.utils import timezone
+
+from models import PUBLISH_STATE_PUBLISHED
+
 
 class LiveManager(models.Manager):
     """Live manager, checks for publish_date and state.
         import random
 
         return items[random.randint(0, count-1)]
-
-

File scm_core/models.py

 
 import reversion
 
-import .managers import LiveManager
+
 
 PUBLISH_STATE_DRAFT = 'draft'
 PUBLISH_STATE_PUBLISHED = 'published'
     (PUBLISH_STATE_STALE, _('Stale content')),
 )
 
+from .managers import LiveManager
 
 class PublishItem(models.Model):
     """Basic model for publish/unpublish and date related stuff