first push
This commit is contained in:
17
temp_model.txt
Normal file
17
temp_model.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
|
||||
class SmsRecipient(BaseModel):
|
||||
"""مدل برای ذخیره شماره های تلفن دریافت کننده پیامک"""
|
||||
phone_number = models.CharField(max_length=11, unique=True)
|
||||
name = models.CharField(max_length=100)
|
||||
is_active = models.BooleanField(default=True)
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.name} - {self.phone_number}"
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
super(SmsRecipient, self).save(*args, **kwargs)
|
||||
|
||||
class Meta:
|
||||
verbose_name = "پیگیر پیامک"
|
||||
verbose_name_plural = "پیگیران پیامک"
|
||||
Reference in New Issue
Block a user