Package django :: Package contrib :: Package admin :: Module models :: Class LogEntry
[hide private]
[frames] | no frames]

Class LogEntry

source code

db.models.Model --+
                  |
                 LogEntry

Nested Classes [hide private]
  Meta
Instance Methods [hide private]
 
__repr__(self) source code
 
is_addition(self) source code
 
is_change(self) source code
 
is_deletion(self) source code
 
get_edited_object(self)
Returns the edited object represented by this log entry
source code
 
get_admin_url(self)
Returns the admin URL to edit the object represented by this log entry.
source code
Class Variables [hide private]
  action_time = models.DateTimeField(_('action time'), auto_now=...
  user = models.ForeignKey(User)
  content_type = models.ForeignKey(ContentType, blank= True, nul...
  object_id = models.TextField(_('object id'), blank= True, null...
  object_repr = models.CharField(_('object repr'), max_length= 200)
  action_flag = models.PositiveSmallIntegerField(_('action flag'))
  change_message = models.TextField(_('change message'), blank= ...
  objects = LogEntryManager()
Method Details [hide private]

get_admin_url(self)

source code 

Returns the admin URL to edit the object represented by this log entry. This is relative to the Django admin index page.


Class Variable Details [hide private]

action_time

Value:
models.DateTimeField(_('action time'), auto_now= True)

content_type

Value:
models.ForeignKey(ContentType, blank= True, null= True)

object_id

Value:
models.TextField(_('object id'), blank= True, null= True)

change_message

Value:
models.TextField(_('change message'), blank= True)