Skip to content
Snippets Groups Projects
Commit a9f8b34c authored by robinwilliam.hundt's avatar robinwilliam.hundt
Browse files

Added plaintext programming-lang option

... also bumped minimum importer version to 3.0.0
parent 70414cfb
Branches
Tags
1 merge request!179Resolve "Minimum Viable Version of free style text correction"
Pipeline #107452 failed
# Generated by Django 2.1.11 on 2019-08-31 14:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0019_merge_20190814_1437'),
]
operations = [
migrations.AlterField(
model_name='submissiontype',
name='programming_language',
field=models.CharField(choices=[('c', 'C syntax highlighting'), ('java', 'Java syntax highlighting'), ('mipsasm', 'Mips syntax highlighting'), ('haskell', 'Haskell syntax highlighting'), ('plaintext', 'No syntax highlighting')], default='c', max_length=25),
),
]
......@@ -35,12 +35,14 @@ class SubmissionType(models.Model):
JAVA = 'java'
MIPS = 'mipsasm'
HASKELL = 'haskell'
TEXT = 'plaintext'
LANGUAGE_CHOICES = (
(C, 'C syntax highlighting'),
(JAVA, 'Java syntax highlighting'),
(MIPS, 'Mips syntax highlighting'),
(HASKELL, 'Haskell syntax highlighting'),
(TEXT, 'No syntax highlighting')
)
submission_type_id = models.UUIDField(primary_key=True,
......
......@@ -28,8 +28,8 @@ PASSWORDS = '.importer_passwords'
YES = 'Y/n'
NO = 'y/N'
RUSTY_HEKTOR_MIN_VER = ">=1.0.0"
RUSTY_HEKTOR_MAX_VER = "<2.0.0"
RUSTY_HEKTOR_MIN_VER = ">=3.0.0"
RUSTY_HEKTOR_MAX_VER = "<4.0.0"
valid = {"yes": True, "y": True, "ye": True, "no": False, "n": False}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment