-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin customization #129
Open
jupadin
wants to merge
24
commits into
djbrown:master
Choose a base branch
from
jupadin:admin-customization
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Admin customization #129
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
926f253
Refactored associations
jupadin 0fffb3e
Refactored districts
jupadin e68db35
Refactored games
jupadin 2a4a4ac
Refactored games.
jupadin 8f4f7e0
Refactored teams.
jupadin ad7c4fc
Changed verbose name of app 'teams'.
jupadin 84f0503
Refactored sports halls.
jupadin 80403ad
Refactored leagues.
jupadin 8ee456e
Rerefactored districts.
jupadin 5adc2ab
Refactored base.
jupadin 77caac5
Run pipenv run mypy src.
jupadin b837197
Run pipenv run flake8.
jupadin 9505c79
Added missing migration files.
jupadin c9582d1
Merge branch 'master' into admin-customization
djbrown 62be689
Handled circumstance that source_url is not necessary.
jupadin 15edf10
Updated gitignore for mails dir.
jupadin aac720e
Merge branch 'master' of https://github.com/djbrown/hbscorez into adm…
jupadin 81f8821
Added missing GameOutcome model.
jupadin b213b32
Fixed pylint warning.
jupadin 90afef0
Merge branch 'master' into admin-customization
jupadin 1418e89
Merge branch 'master' of https://github.com/djbrown/hbscorez into adm…
jupadin 75296b2
FR: Used API-URL to retrieve association abbreviations.
jupadin 5ed3ba6
Merge branch 'admin-customization' of https://github.com/jupadin/hbsc…
jupadin 82853a3
Refactored association abbreviation retrieval.
jupadin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -18,3 +18,4 @@ docker-stack*.yml | |
geckodriver.log | ||
hbscorez.log | ||
src/hbscorez/settings_docker_stack*.py | ||
src/mails/ |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
|
||
class AssociationsConfig(AppConfig): | ||
name = 'associations' | ||
verbose_name = 'Verbände' |
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
35 changes: 35 additions & 0 deletions
35
src/associations/migrations/0003_alter_association_options_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,35 @@ | ||
# Generated by Django 4.2.4 on 2023-10-20 10:45 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("associations", "0002_association_source_url"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="association", | ||
options={"verbose_name": "Verband", "verbose_name_plural": "Verbände"}, | ||
), | ||
migrations.RemoveField( | ||
model_name="association", | ||
name="source_url", | ||
), | ||
migrations.AlterField( | ||
model_name="association", | ||
name="abbreviation", | ||
field=models.CharField(max_length=255, verbose_name="Abkürzung"), | ||
), | ||
migrations.AlterField( | ||
model_name="association", | ||
name="bhv_id", | ||
field=models.IntegerField(unique=True, verbose_name="ID"), | ||
), | ||
migrations.AlterField( | ||
model_name="association", | ||
name="name", | ||
field=models.CharField(max_length=255, unique=True, verbose_name="Name"), | ||
), | ||
] |
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 |
---|---|---|
|
@@ -4,10 +4,13 @@ | |
|
||
|
||
class Association(models.Model): | ||
name = models.TextField(unique=True) | ||
abbreviation = models.TextField() | ||
bhv_id = models.IntegerField(unique=True) | ||
source_url = models.TextField() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Attribut |
||
bhv_id = models.IntegerField('ID', unique=True) | ||
name = models.CharField('Name', max_length=255, unique=True) | ||
abbreviation = models.CharField('Abkürzung', max_length=255) | ||
|
||
class Meta: | ||
verbose_name = 'Verband' | ||
verbose_name_plural = 'Verbände' | ||
|
||
def __str__(self): | ||
return f'{self.bhv_id} {self.abbreviation}' | ||
|
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
24 changes: 24 additions & 0 deletions
24
src/base/migrations/0003_alter_env_options_alter_env_name.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,24 @@ | ||
# Generated by Django 4.2.4 on 2023-10-23 20:08 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("base", "0002_globalmessage"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="env", | ||
options={ | ||
"verbose_name": "Umgebungsvariable", | ||
"verbose_name_plural": "Umgebungsvariablen", | ||
}, | ||
), | ||
migrations.AlterField( | ||
model_name="env", | ||
name="name", | ||
field=models.CharField(max_length=255, unique=True), | ||
), | ||
] |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
|
||
class DistrictsConfig(AppConfig): | ||
name = 'districts' | ||
verbose_name = 'Bezirke' |
38 changes: 38 additions & 0 deletions
38
src/districts/migrations/0002_alter_district_options_alter_district_associations_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,38 @@ | ||
# Generated by Django 4.2.4 on 2023-10-23 20:08 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("associations", "0003_alter_association_options_and_more"), | ||
("districts", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="district", | ||
options={ | ||
"ordering": ("bhv_id",), | ||
"verbose_name": "Bezirk", | ||
"verbose_name_plural": "Bezirke", | ||
}, | ||
), | ||
migrations.AlterField( | ||
model_name="district", | ||
name="associations", | ||
field=models.ManyToManyField( | ||
to="associations.association", verbose_name="Verbände" | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="district", | ||
name="bhv_id", | ||
field=models.IntegerField(unique=True, verbose_name="ID"), | ||
), | ||
migrations.AlterField( | ||
model_name="district", | ||
name="name", | ||
field=models.CharField(max_length=255, unique=True, verbose_name="Name"), | ||
), | ||
] |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
|
||
class GamesConfig(AppConfig): | ||
name = 'games' | ||
verbose_name = 'Spiele' |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attribut
source_url
wird nach meinem Verständnis noch benötigt