Model movement to fix tests.
This commit is contained in:
Родитель
cd83a7d6c1
Коммит
10ab3aa582
|
@ -444,9 +444,8 @@ def log(action, *args, **kw):
|
|||
"""
|
||||
from addons.models import Addon
|
||||
from amo import get_user, logger_log
|
||||
from devhub.models import (ActivityLog, AddonLog, UserLog,
|
||||
from devhub.models import (ActivityLog, AddonLog, AppLog, UserLog,
|
||||
CommentLog, VersionLog)
|
||||
from mkt.developers.models import AppLog
|
||||
from mkt.webapps.models import Webapp
|
||||
from users.models import UserProfile
|
||||
from versions.models import Version
|
||||
|
|
|
@ -14,6 +14,7 @@ import amo
|
|||
import amo.models
|
||||
from addons.models import Addon
|
||||
from bandwagon.models import Collection
|
||||
from mkt.webapps.models import Webapp
|
||||
from reviews.models import Review
|
||||
from tags.models import Tag
|
||||
from translations.fields import TranslatedField
|
||||
|
@ -93,6 +94,18 @@ class AddonLog(amo.models.ModelBase):
|
|||
ordering = ('-created',)
|
||||
|
||||
|
||||
class AppLog(amo.models.ModelBase):
|
||||
"""
|
||||
This table is for indexing the activity log by app.
|
||||
"""
|
||||
addon = models.ForeignKey(Webapp)
|
||||
activity_log = models.ForeignKey('ActivityLog')
|
||||
|
||||
class Meta:
|
||||
db_table = 'log_activity_app'
|
||||
ordering = ('-created',)
|
||||
|
||||
|
||||
class CommentLog(amo.models.ModelBase):
|
||||
"""
|
||||
This table is for indexing the activity log by comment.
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
from django.db import models
|
||||
|
||||
import amo
|
||||
from devhub.models import ActivityLog
|
||||
from mkt.webapps.models import Webapp
|
||||
|
||||
|
||||
class AppLog(amo.models.ModelBase):
|
||||
"""
|
||||
This table is for indexing the activity log by app.
|
||||
"""
|
||||
addon = models.ForeignKey(Webapp)
|
||||
activity_log = models.ForeignKey(ActivityLog)
|
||||
|
||||
class Meta:
|
||||
db_table = 'log_activity_app'
|
||||
ordering = ('-created',)
|
|
@ -10,12 +10,11 @@ import amo
|
|||
from amo.tests import app_factory, check_links
|
||||
from amo.urlresolvers import reverse
|
||||
from amo.utils import urlparams
|
||||
from devhub.models import ActivityLog
|
||||
from devhub.models import AppLog
|
||||
from editors.models import CannedResponse
|
||||
from editors.tests.test_views import EditorTest
|
||||
from users.models import UserProfile
|
||||
|
||||
from mkt.developers.models import AppLog
|
||||
from mkt.webapps.models import Webapp
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче