-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da19e12
commit d444098
Showing
7 changed files
with
75 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
from django.contrib import admin | ||
|
||
from .models import Problem, ProblemText | ||
from .models import Problem | ||
|
||
|
||
class ProblemInline(admin.TabularInline): | ||
model = Problem | ||
extra = 2 | ||
|
||
|
||
admin.site.register(ProblemText) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
nadlogar/problems/migrations/0018_remove_problem_text_problem_instruction_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Generated by Django 4.1.3 on 2022-11-29 08:33 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("problems", "0017_alter_problem_text"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="problem", | ||
name="text", | ||
), | ||
migrations.AddField( | ||
model_name="problem", | ||
name="instruction", | ||
field=models.TextField(blank=True, verbose_name="navodilo"), | ||
), | ||
migrations.AddField( | ||
model_name="problem", | ||
name="solution", | ||
field=models.TextField(blank=True, verbose_name="rešitev"), | ||
), | ||
migrations.DeleteModel( | ||
name="ProblemText", | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters