princekhunt / privateping

PrivatePing is a secure messaging application built on Python's Django framework, providing end-to-end encryption for messages exchanged between users.
https://privateping.bytespot.tech
MIT License
125 stars 30 forks source link

Add class Meta to Models to Change Verbose Names #52

Closed snipher-marube closed 4 days ago

snipher-marube commented 5 days ago

This pull request introduces changes to the models by adding a class Metato customize the verbose names. This change prevents the pluralization issues where 'keys' was displayed as 'keyss' and 'friends' as 'friendss'.

Changes Made:

Detailed Changes:

class Keys(models.Model):

model fields

name = models.CharField(max_length=100)

class Meta:
    verbose_name_plural = "keys"
- Friends Model:
```bash
from django.db import models

class Friends(models.Model):
    # model fields
    name = models.CharField(max_length=100)

    class Meta:
        verbose_name_plural = "friends"

Testing

Additional Notes

Thank you for considering this improvement!