Skip to content

I want to put verbose_name_plural here, doesn't it work? #10

@aMstr0

Description

@aMstr0

class GalleryInlines(NonrelatedTabularInline):
model = Gallery
tab = True
extra = 0
can_delete = False
fields = ["image", "status",
"is_deleted", "caption",
"created_at"]

readonly_fields = ["image", "status", 
        "is_deleted", "caption", 
        "created_at"]

def get_form_queryset(self, obj):
    return self.model.objects.filter(salon=obj.salon)

def save_new_instance(self, parent, instance):
    pass

class Meta:
    verbose_name = "نمونه کار"
    verbose_name_plural = "نمونه کار ها"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions