mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Added metadata to the eve_proxy models
This commit is contained in:
@@ -144,6 +144,11 @@ class CachedDocument(models.Model):
|
|||||||
# The custom manager handles the querying.
|
# The custom manager handles the querying.
|
||||||
objects = CachedDocumentManager()
|
objects = CachedDocumentManager()
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
verbose_name = 'Cached Document'
|
||||||
|
verbose_name_plural = 'Cached Documents'
|
||||||
|
ordering = ['time_retrieved']
|
||||||
|
|
||||||
class ApiAccessLog(models.Model):
|
class ApiAccessLog(models.Model):
|
||||||
"""
|
"""
|
||||||
Provides a list of API accesses made by applications or Auth
|
Provides a list of API accesses made by applications or Auth
|
||||||
@@ -152,3 +157,8 @@ class ApiAccessLog(models.Model):
|
|||||||
service = models.CharField(max_length=255)
|
service = models.CharField(max_length=255)
|
||||||
time_access = models.DateTimeField()
|
time_access = models.DateTimeField()
|
||||||
document = models.CharField(max_length=255)
|
document = models.CharField(max_length=255)
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
verbose_name = 'API Access Log'
|
||||||
|
verbose_name_plural = 'API Access Logs'
|
||||||
|
ordering = ['time_access']
|
||||||
|
|||||||
Reference in New Issue
Block a user