Added metadata to the eve_proxy models

This commit is contained in:
2010-10-25 14:13:55 +01:00
parent 89dac99d92
commit b63eaaaceb

View File

@@ -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']