-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14238 from netbox-community/develop
Release v3.6.5
- Loading branch information
Showing
32 changed files
with
333 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
name: 🌍 Translation | ||
description: Request support for a new language in the user interface | ||
labels: ["type: translation"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
**NOTE:** This template is used only for proposing the addition of *new* languages. Please do | ||
not use it to request changes to existing translations. | ||
- type: input | ||
attributes: | ||
label: Language | ||
description: What is the name of the language in English? | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: ISO 639-1 code | ||
description: > | ||
What is the two-letter [ISO 639-1 code](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) | ||
assigned to the language? | ||
validations: | ||
required: true | ||
- type: dropdown | ||
attributes: | ||
label: Volunteer | ||
description: Are you a fluent speaker of this language **and** willing to contribute a translation map? | ||
options: | ||
- "Yes" | ||
- "No" | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Comments | ||
description: Any other notes you would like to share |
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 |
---|---|---|
@@ -1,11 +1,20 @@ | ||
from django.core.cache import cache | ||
from django.core.management.base import BaseCommand | ||
|
||
from extras.models import ConfigRevision | ||
|
||
|
||
class Command(BaseCommand): | ||
"""Command to clear the entire cache.""" | ||
help = 'Clears the cache.' | ||
|
||
def handle(self, *args, **kwargs): | ||
# Fetch the current config revision from the cache | ||
config_version = cache.get('config_version') | ||
# Clear the cache | ||
cache.clear() | ||
self.stdout.write('Cache has been cleared.', ending="\n") | ||
if config_version: | ||
# Activate the current config revision | ||
ConfigRevision.objects.get(id=config_version).activate() | ||
self.stdout.write(f'Config revision ({config_version}) has been restored.', ending="\n") |
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
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
Oops, something went wrong.