from django.db import models


class Post(models.Model):
    """Стандарная модель MVC MODEL VIEW CONTROLLER"""
    author = models.ForeignKey('auth.User')
    title = models.CharField(max_length=150)
    text = models.TextField()
    updated = models.DateTimeField(auto_now=True, auto_now_add=False)
    created = models.DateTimeField(auto_now=False, auto_now_add=True)

    def __str__(self):
        return self.title

@@ -22,16 +22,61 @@
  models%0A
+from django.core.urlresolvers import reverse%0A
 %0A%0Aclass 
@@ -458,8 +458,98 @@
 f.title%0A
+%0A    def get_absolute_url(self):%0A        return reverse('detail', kwargs=%7B'id': self.id%7D)%0A

edit models.py