diff --git a/netbox/extras/models/models.py b/netbox/extras/models/models.py index a34261342..d0bb5af6e 100644 --- a/netbox/extras/models/models.py +++ b/netbox/extras/models/models.py @@ -626,6 +626,8 @@ class TableConfig(CloningMixin, ChangeLoggedModel): # Validate ordering columns for name in self.ordering: + if name.startswith('-'): + name = name[1:] # Strip leading hyphen if name not in table.columns: raise ValidationError({ 'ordering': _('Unknown column: {name}').format(name=name)