mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2025-08-14 10:47:30 +08:00
add Visitor in example
This commit is contained in:
@ -82,3 +82,9 @@ class Config(Model):
|
||||
|
||||
def __str__(self):
|
||||
return f"{self.pk}#{self.label}"
|
||||
|
||||
|
||||
class Visitor(Model):
|
||||
ip = fields.CharField(max_length=200, unique=True)
|
||||
updated_at = fields.DatetimeField(auto_now=True)
|
||||
created_at = fields.DatetimeField(auto_now_add=True)
|
||||
|
Reference in New Issue
Block a user