Infinite scrolling and comment migration
This commit is contained in:
parent
4b558bd656
commit
799ff5f8f8
33 changed files with 639 additions and 556 deletions
|
@ -3,10 +3,7 @@ from django.db.models import CASCADE
|
|||
from django.utils.translation import gettext_lazy as _
|
||||
from django.core.exceptions import ObjectDoesNotExist
|
||||
|
||||
from judge.models import Profile
|
||||
from judge.models.contest import Contest
|
||||
from judge.models.interface import BlogPost
|
||||
from judge.models.problem import Problem, Solution
|
||||
from judge.models.profile import Profile
|
||||
|
||||
__all__ = ["BookMark"]
|
||||
|
||||
|
@ -26,6 +23,10 @@ class BookMark(models.Model):
|
|||
return False
|
||||
|
||||
def page_object(self):
|
||||
from judge.models.contest import Contest
|
||||
from judge.models.interface import BlogPost
|
||||
from judge.models.problem import Problem, Solution
|
||||
|
||||
try:
|
||||
page = self.page
|
||||
if page.startswith("p:"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue