-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add permission to change tags (#445)
* first commit * fix permissions * fix admin panel not saving * small fixes * fix origin info * change permission name * fix permissions for contest admins * fix permissions for contest admins * fix for problems without contests * add test * resolve conflicts * small fix * test tags tab * squash migrations * remove redundant migrations
- Loading branch information
Showing
10 changed files
with
169 additions
and
39 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 4.2.16 on 2025-01-20 16:58 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('problems', '0033_populate_aggregated_tag_proposals'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='problem', | ||
options={'permissions': (('can_modify_tags', 'Can modify tags'), ('problems_db_admin', 'Can administer the problems database'), ('problem_admin', 'Can administer the problem')), 'verbose_name': 'problem', 'verbose_name_plural': 'problems'}, | ||
), | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% load i18n %} | ||
|
||
|
||
<div class="row settings-row d-none d-lg-flex"> | ||
|
||
{# Tags panel #} | ||
<div class="settings-group col-lg-5"> | ||
{% include 'problems/ingredients/tags-panel.html' %} | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="row settings-row d-none d-md-flex d-lg-none"> | ||
|
||
{# Tags panel #} | ||
<div class="settings-group col-md-12"> | ||
{% include 'problems/ingredients/tags-panel.html' %} | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="row settings-row d-md-none"> | ||
|
||
{# Tags panel #} | ||
<div class="settings-group col-sm-12"> | ||
{% include 'problems/ingredients/tags-panel.html' %} | ||
</div> | ||
|
||
</div> |
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