Package django :: Package contrib :: Package comments :: Module models :: Class FreeComment
[hide private]
[frames] | no frames]

Class FreeComment

source code

db.models.Model --+
                  |
                 FreeComment

A comment by a non-registered user.

Nested Classes [hide private]
  Meta
  Admin
Instance Methods [hide private]
 
__unicode__(self) source code
 
get_absolute_url(self) source code
 
get_content_object(self)
Returns the object that this comment is a comment on.
source code
Class Variables [hide private]
  content_type = models.ForeignKey(ContentType)
  object_id = models.IntegerField(_('object ID'))
  comment = models.TextField(_('comment'), max_length= 3000)
  person_name = models.CharField(_("person's name"), max_length=...
  submit_date = models.DateTimeField(_('date/time submitted'), a...
  is_public = models.BooleanField(_('is public'))
  ip_address = models.IPAddressField(_('ip address'))
  approved = models.BooleanField(_('approved by staff'))
  site = models.ForeignKey(Site)
Method Details [hide private]

get_content_object(self)

source code 

Returns the object that this comment is a comment on. Returns None if the object no longer exists.


Class Variable Details [hide private]

person_name

Value:
models.CharField(_("person's name"), max_length= 50)

submit_date

Value:
models.DateTimeField(_('date/time submitted'), auto_now_add= True)