mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-28 04:13:58 +00:00
Refactor device management: add vendor field, enhance admin display, and improve MAC address handling
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m18s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 4m18s
This commit is contained in:
@ -21,6 +21,7 @@ class Device(models.Model):
|
||||
validate_mac_address,
|
||||
],
|
||||
)
|
||||
vendor = models.CharField(max_length=255, null=True, blank=True, default="")
|
||||
has_a_pending_payment = models.BooleanField(default=False)
|
||||
reason_for_blocking = models.CharField(max_length=255, null=True, blank=True)
|
||||
is_active = models.BooleanField(default=False)
|
||||
@ -29,7 +30,9 @@ class Device(models.Model):
|
||||
blocked_by = models.CharField(
|
||||
max_length=255,
|
||||
choices=[("ADMIN", "Admin"), ("PARENT", "Parent")],
|
||||
default="PARENT",
|
||||
default=None,
|
||||
blank=True,
|
||||
null=True,
|
||||
)
|
||||
expiry_date = models.DateTimeField(null=True, blank=True)
|
||||
created_at = models.DateTimeField(default=timezone.now)
|
||||
|
Reference in New Issue
Block a user