зеркало из https://github.com/mozilla/kitsune.git
Die, relative imports!
This commit is contained in:
Родитель
0798e61cef
Коммит
5d0a584ab7
|
@ -1,6 +1,7 @@
|
|||
from django.contrib import admin
|
||||
|
||||
from .models import Tweet, CannedCategory, CannedResponse, CategoryMembership
|
||||
from customercare.models import (Tweet, CannedCategory, CannedResponse,
|
||||
CategoryMembership)
|
||||
|
||||
|
||||
class TweetAdmin(admin.ModelAdmin):
|
||||
|
|
|
@ -6,7 +6,7 @@ from django.utils.feedgenerator import Atom1Feed
|
|||
|
||||
from tower import ugettext as _
|
||||
|
||||
from .models import Forum, Thread
|
||||
from forums.models import Forum, Thread
|
||||
import forums as constants
|
||||
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ from django import forms
|
|||
from tower import ugettext_lazy as _lazy
|
||||
|
||||
from sumo.form_fields import StrippedCharField
|
||||
from .models import Thread, Post
|
||||
from forums.models import Thread, Post
|
||||
|
||||
|
||||
MSG_TITLE_REQUIRED = _lazy(u'Please provide a title.')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from .models import Forum
|
||||
from forums.models import Forum
|
||||
|
||||
import authority
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from django.conf.urls.defaults import patterns, url
|
||||
from .feeds import ThreadsFeed, PostsFeed
|
||||
from forums.feeds import ThreadsFeed, PostsFeed
|
||||
|
||||
urlpatterns = patterns('forums.views',
|
||||
url(r'^$', 'forums', name='forums.forums'),
|
||||
|
|
|
@ -3,7 +3,7 @@ from django import forms
|
|||
from tower import ugettext_lazy as _lazy, ugettext as _
|
||||
|
||||
from sumo.form_fields import StrippedCharField
|
||||
from .models import Answer
|
||||
from questions.models import Answer
|
||||
|
||||
# labels and help text
|
||||
SITE_AFFECTED_LABEL = _lazy(u'URL of affected site')
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
from django.conf.urls.defaults import patterns, url
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
|
||||
from .feeds import QuestionsFeed, AnswersFeed, TaggedQuestionsFeed
|
||||
from .models import Question, Answer
|
||||
from questions.feeds import QuestionsFeed, AnswersFeed, TaggedQuestionsFeed
|
||||
from questions.models import Question, Answer
|
||||
from flagit import views as flagit_views
|
||||
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ from nose.tools import eq_
|
|||
from sumo.urlresolvers import reverse
|
||||
from sumo.tests import LocalizingClient
|
||||
|
||||
from .test_search import SphinxTestCase
|
||||
from search.tests.test_search import SphinxTestCase
|
||||
|
||||
|
||||
class JSONTest(SphinxTestCase):
|
||||
|
|
Загрузка…
Ссылка в новой задаче