Ticket #3995: message_type.diff
File message_type.diff, 880 bytes (added by , 18 years ago) |
---|
-
usr/lib/python2.3/site-packages/django_trunk/django/contrib/auth/models.py
225 225 def get_and_delete_messages(self): 226 226 messages = [] 227 227 for m in self.message_set.all(): 228 messages.append(m .message)228 messages.append(m) 229 229 m.delete() 230 230 return messages 231 231 … … 256 256 """ 257 257 user = models.ForeignKey(User) 258 258 message = models.TextField(_('message')) 259 category = models.CharField(maxlength=1, choices=(('S', 'success'), ('F', 'failure'), ('G', 'generic'),), default='S') 259 260 260 261 def __str__(self): 261 262 return self.message