Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

override the text in buttons django admin

class WaitlistEntry(Timestamps, models.Model):
    first_name = models.CharField(max_length=100)
    last_name = models.CharField(max_length=100)

    class Meta:
        verbose_name_plural = "Waitlist entries"

# verbose_name is a human-readable name for the field. 
# If the verbose name isn't given, Django will automatically create it using the field's attribute name, 
# converting underscores to spaces. This attribute in general changes the field name in admin interface.
 
PREVIOUS NEXT
Tagged: #override #text #buttons #django #admin
ADD COMMENT
Topic
Name
4+6 =