[extensions-web/django/upgrade-1.8] django-comments: do not use global imports to avoid warning



commit 7e8626be58ed09c787de715653967d622148d634
Author: Yuri Konotopov <ykonotopov gnome org>
Date:   Thu Oct 27 00:35:04 2016 +0300

    django-comments: do not use global imports to avoid warning

 sweettooth/ratings/__init__.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/sweettooth/ratings/__init__.py b/sweettooth/ratings/__init__.py
index 735f567..70c469a 100644
--- a/sweettooth/ratings/__init__.py
+++ b/sweettooth/ratings/__init__.py
@@ -1,8 +1,8 @@
-
-from sweettooth.ratings import models, forms
-
 def get_model():
-    return models.RatingComment
+    from sweettooth.ratings.models import RatingComment
+    return RatingComment
+
 
 def get_form():
-    return forms.RatingCommentForm
+    from sweettooth.ratings.forms import RatingCommentForm
+    return RatingCommentForm


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]