Fix CinderPolicy plural name (#22675)
This commit is contained in:
Родитель
88090fd6b1
Коммит
7c8ad30b99
|
@ -394,7 +394,6 @@ class CinderPolicyAdmin(AMOModelAdmin):
|
|||
ordering = ('parent__name', 'name')
|
||||
list_select_related = ('parent',)
|
||||
view_on_site = False
|
||||
verbose_name_plural = 'Cinder Policies'
|
||||
|
||||
def has_add_permission(self, request):
|
||||
return False
|
||||
|
|
|
@ -886,6 +886,9 @@ class CinderPolicy(ModelBase):
|
|||
parts.append(f': {canned_response_text}')
|
||||
return ''.join(parts)
|
||||
|
||||
class Meta:
|
||||
verbose_name_plural = 'Cinder Policies'
|
||||
|
||||
|
||||
class CinderDecision(ModelBase):
|
||||
action = models.PositiveSmallIntegerField(choices=DECISION_ACTIONS.choices)
|
||||
|
|
Загрузка…
Ссылка в новой задаче