[PR #13354] [MERGED] Closes #13352: Translation support for model verbose names #14167

Closed
opened 2025-12-29 23:22:58 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13354
Author: @jeremystretch
Created: 8/3/2023
Status: Merged
Merged: 8/3/2023
Merged by: @jeremystretch

Base: featureHead: 13352-verbose-names


📝 Commits (2)

  • 5f31b14 Update verbose_name & verbose_name_plural Meta attributes on all models
  • b361be9 Alter makemigrations to ignore verbose_name & verbose_name_plural changes

📊 Changes

36 files changed (+288 additions, -28 deletions)

View changed files

📝 netbox/circuits/models/circuits.py (+9 -0)
📝 netbox/circuits/models/providers.py (+6 -0)
📝 netbox/core/management/commands/makemigrations.py (+6 -0)
📝 netbox/core/models/data.py (+6 -0)
📝 netbox/core/models/files.py (+2 -0)
📝 netbox/core/models/jobs.py (+2 -0)
📝 netbox/dcim/models/cables.py (+8 -0)
📝 netbox/dcim/models/device_component_templates.py (+36 -0)
📝 netbox/dcim/models/device_components.py (+39 -0)
📝 netbox/dcim/models/devices.py (+27 -1)
📝 netbox/dcim/models/power.py (+4 -0)
📝 netbox/dcim/models/racks.py (+9 -0)
📝 netbox/dcim/models/sites.py (+8 -0)
📝 netbox/extras/models/change_logging.py (+2 -0)
📝 netbox/extras/models/configs.py (+4 -0)
📝 netbox/extras/models/customfields.py (+4 -0)
📝 netbox/extras/models/dashboard.py (+2 -1)
📝 netbox/extras/models/models.py (+16 -1)
📝 netbox/extras/models/reports.py (+3 -0)
📝 netbox/extras/models/scripts.py (+3 -0)

...and 16 more files

📄 Description

Closes: #13352

  • Define verbose_name and verbose_name_plural for every model (wrapped with gettext_lazy())
  • Alter the makemigrations management command to ignore changes to a model's verbose_name and verbose_name_plural Meta attributes

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/13354 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/3/2023 **Status:** ✅ Merged **Merged:** 8/3/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `13352-verbose-names` --- ### 📝 Commits (2) - [`5f31b14`](https://github.com/netbox-community/netbox/commit/5f31b14b498bc96458f7628582c199b75cdc437d) Update verbose_name & verbose_name_plural Meta attributes on all models - [`b361be9`](https://github.com/netbox-community/netbox/commit/b361be9721636a916c4733b3802a464c3048533d) Alter makemigrations to ignore verbose_name & verbose_name_plural changes ### 📊 Changes **36 files changed** (+288 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `netbox/circuits/models/circuits.py` (+9 -0) 📝 `netbox/circuits/models/providers.py` (+6 -0) 📝 `netbox/core/management/commands/makemigrations.py` (+6 -0) 📝 `netbox/core/models/data.py` (+6 -0) 📝 `netbox/core/models/files.py` (+2 -0) 📝 `netbox/core/models/jobs.py` (+2 -0) 📝 `netbox/dcim/models/cables.py` (+8 -0) 📝 `netbox/dcim/models/device_component_templates.py` (+36 -0) 📝 `netbox/dcim/models/device_components.py` (+39 -0) 📝 `netbox/dcim/models/devices.py` (+27 -1) 📝 `netbox/dcim/models/power.py` (+4 -0) 📝 `netbox/dcim/models/racks.py` (+9 -0) 📝 `netbox/dcim/models/sites.py` (+8 -0) 📝 `netbox/extras/models/change_logging.py` (+2 -0) 📝 `netbox/extras/models/configs.py` (+4 -0) 📝 `netbox/extras/models/customfields.py` (+4 -0) 📝 `netbox/extras/models/dashboard.py` (+2 -1) 📝 `netbox/extras/models/models.py` (+16 -1) 📝 `netbox/extras/models/reports.py` (+3 -0) 📝 `netbox/extras/models/scripts.py` (+3 -0) _...and 16 more files_ </details> ### 📄 Description ### Closes: #13352 - Define `verbose_name` and `verbose_name_plural` for every model (wrapped with `gettext_lazy()`) - Alter the `makemigrations` management command to ignore changes to a model's `verbose_name` and `verbose_name_plural` Meta attributes --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:22:58 +01:00
adam closed this issue 2025-12-29 23:22:58 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14167