Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed more imports, to prevent circular dependencies.

  • Loading branch information...
commit e0f9d7fea50d56093ac12ebc9435d5f369d92a5a 1 parent 24290a9
@jezdez jezdez authored
View
2  threaded_messages/models.py
@@ -8,7 +8,6 @@
from django.db.models import F, Q
from django.db.models import Avg, Max, Min, Count
-from .utils import now
from .listeners import start_listening
start_listening()
@@ -76,6 +75,7 @@ def __unicode__(self):
def save(self, **kwargs):
if not self.id:
+ from .utils import now
self.sent_at = now()
super(Message, self).save(**kwargs)
View
2  threaded_messages/search_indexes.py
@@ -1,5 +1,5 @@
from haystack import indexes
-from models import Thread
+from .models import Thread
class ThreadIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
Please sign in to comment.
Something went wrong with that request. Please try again.