translated rescuer model for admin section
This commit is contained in:
parent
9fdc2ea1d4
commit
17c06d1eaa
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,7 @@ from uuid import uuid4
|
|||
|
||||
from django.conf import settings
|
||||
from django.db import models
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
|
||||
class Rescuer(models.Model):
|
||||
|
@ -16,5 +17,9 @@ class Rescuer(models.Model):
|
|||
phone = models.CharField(max_length=200)
|
||||
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
|
||||
|
||||
class Meta:
|
||||
verbose_name = _("Finder")
|
||||
verbose_name_plural = _("Finder")
|
||||
|
||||
def __str__(self) -> str:
|
||||
return self.first_name + " " + self.last_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue