Remove math engines
This commit is contained in:
parent
3f53c62d4d
commit
1e7957a2cd
22 changed files with 67 additions and 81 deletions
|
@ -2,8 +2,6 @@ from reversion import revisions
|
|||
|
||||
from judge.models.choices import (
|
||||
ACE_THEMES,
|
||||
EFFECTIVE_MATH_ENGINES,
|
||||
MATH_ENGINES_CHOICES,
|
||||
TIMEZONE,
|
||||
)
|
||||
from judge.models.comment import Comment, CommentLock, CommentVote
|
||||
|
|
|
@ -54,13 +54,3 @@ ACE_THEMES = (
|
|||
("vibrant_ink", "Vibrant Ink"),
|
||||
("xcode", "XCode"),
|
||||
)
|
||||
|
||||
MATH_ENGINES_CHOICES = (
|
||||
("tex", _("Leave as LaTeX")),
|
||||
("svg", _("SVG with PNG fallback")),
|
||||
("mml", _("MathML only")),
|
||||
("jax", _("MathJax with SVG/PNG fallback")),
|
||||
("auto", _("Detect best quality")),
|
||||
)
|
||||
|
||||
EFFECTIVE_MATH_ENGINES = ("svg", "mml", "tex", "jax")
|
||||
|
|
|
@ -17,7 +17,7 @@ from django.db.models.signals import post_save, pre_save
|
|||
from fernet_fields import EncryptedCharField
|
||||
from sortedm2m.fields import SortedManyToManyField
|
||||
|
||||
from judge.models.choices import ACE_THEMES, MATH_ENGINES_CHOICES, TIMEZONE
|
||||
from judge.models.choices import ACE_THEMES, TIMEZONE
|
||||
from judge.models.runtime import Language
|
||||
from judge.ratings import rating_class
|
||||
from judge.caching import cache_wrapper
|
||||
|
@ -215,13 +215,6 @@ class Profile(models.Model):
|
|||
related_name="+",
|
||||
on_delete=models.SET_NULL,
|
||||
)
|
||||
math_engine = models.CharField(
|
||||
verbose_name=_("math engine"),
|
||||
choices=MATH_ENGINES_CHOICES,
|
||||
max_length=4,
|
||||
default=settings.MATHOID_DEFAULT_TYPE,
|
||||
help_text=_("the rendering engine used to render math"),
|
||||
)
|
||||
is_totp_enabled = models.BooleanField(
|
||||
verbose_name=_("2FA enabled"),
|
||||
default=False,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue