from django.db import models

from django.contrib.auth.models import User

class NewsItem(models.Model):

    title = models.CharField(maxlength=50)
    content = models.TextField()
    creator = models.ForeignKey(User)
    creation_date = models.DateTimeField()

    def get_absolute_url(self):
        return "/announcements/" + str(self.id)
    
    def __str__(self):
        return self.title
    
    class Admin:
        list_display = ("title", "creator", "creation_date")

@@ -131,16 +131,17 @@
 ield(max
+_
 length=5
@@ -338,10 +338,10 @@
 elf.
-id
+pk
 )%0A  
@@ -353,19 +353,23 @@
   def __
-str
+unicode
 __(self)

Trunkified the NewsItem model.