Add missing migration for platform constraint message
Align the migration state with the model's check constraint, including its violation_error_message. Verified with NetBox 4.7.2. Bump version to 1.13.1. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
1647246cbd
commit
5eff411db9
3 files changed
+20
-1
No files matched your search
@@ -4,6 +4,7 @@
|
||||
|
||||
### Fixed
|
||||
|
||||
* Add the missing migration for the platform constraint's error message (verified against NetBox 4.7.2)
|
||||
* Make the required single platform destination explicit when creating an installation
|
||||
* Fix installation form submission on NetBox v4.6.5 when form mixins return no cleaned-data value
|
||||
* Prevent the notification log creation flag from shadowing Django's translation function during email delivery
|
||||
|
||||
@@ -17,7 +17,7 @@ limitations under the License.
|
||||
from netbox.plugins import PluginConfig
|
||||
from django.utils.translation import gettext, gettext_lazy as _
|
||||
|
||||
__version__ = "1.13.0"
|
||||
__version__ = "1.13.1"
|
||||
|
||||
|
||||
class SLMConfig(PluginConfig):
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 6.1.1 on 2026-10-13 12:07
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('netbox_slm', '0014_softwarelicense_email_notification_permission'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterConstraint(
|
||||
model_name='softwareproductinstallation',
|
||||
name='netbox_slm_softwareproductinstallation_platform',
|
||||
constraint=models.CheckConstraint(condition=models.Q(models.Q(('cluster__isnull', True), ('device__isnull', False), ('virtualmachine__isnull', True)), models.Q(('cluster__isnull', True), ('device__isnull', True), ('virtualmachine__isnull', False)), models.Q(('cluster__isnull', False), ('device__isnull', True), ('virtualmachine__isnull', True)), _connector='OR'), name='netbox_slm_softwareproductinstallation_platform', violation_error_message='Select exactly one platform destination: device, virtual machine, or cluster.'),
|
||||
),
|
||||
]
|
||||
Reference in new issue
Block a user