Shortcut Name for ModelAdmin in Django

how can I give this class a label that appears in the backend instead of "EditedAddress"?

class EditedAddressAdmin(admin.ModelAdmin): list_display = ('comp_name','fam_name', 'fon') search_fields = ['fam_name','comp_name'] admin.site.register(EditedAddress,EditedAddressAdmin) 
+7
source share
1 answer

You can customize the way the model name is displayed by adding verbose_name and / or verbose_name_plural to your model:

 class EditedAddress(models.Model): class Meta: verbose_name = 'Edited Address' verbose_name_plural = 'Edited Addresses' 
+15
source

All Articles