add company app
This commit is contained in:
15
core/apps/company/models/comany.py
Normal file
15
core/apps/company/models/comany.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from django.db import models
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from core.apps.shared.models import BaseModel
|
||||
|
||||
|
||||
class Company(BaseModel):
|
||||
name = models.CharField(max_length=200, unique=True, db_index=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
class Meta:
|
||||
verbose_name = _('Kompaniya')
|
||||
verbose_name_plural = _("Kompaniyalar")
|
||||
Reference in New Issue
Block a user