from django.db import models


class PostsManager(models.Manager):

    def get_recent_data(self, count=5):
        return super(PostsManager, self).all().order_by('-created_at')[:count]


class Posts(models.Model):
    name = models.CharField(max_length=30)
    description = models.TextField()
    url = models.TextField()
    created_at = models.DateTimeField()
    objects = PostsManager()

75a4d1b0c3df384fdb7028d9ce9268e45a701e4d
<mask token>


class Posts(models.Model):
    name = models.CharField(max_length=30)
    description = models.TextField()
    url = models.TextField()
    created_at = models.DateTimeField()
    objects = PostsManager()

<mask token>


class PostsManager(models.Manager):
    <mask token>


class Posts(models.Model):
    name = models.CharField(max_length=30)
    description = models.TextField()
    url = models.TextField()
    created_at = models.DateTimeField()
    objects = PostsManager()

<mask token>


class PostsManager(models.Manager):

    def get_recent_data(self, count=5):
        return super(PostsManager, self).all().order_by('-created_at')[:count]


class Posts(models.Model):
    name = models.CharField(max_length=30)
    description = models.TextField()
    url = models.TextField()
    created_at = models.DateTimeField()
    objects = PostsManager()

from django.db import models


class PostsManager(models.Manager):

    def get_recent_data(self, count=5):
        return super(PostsManager, self).all().order_by('-created_at')[:count]


class Posts(models.Model):
    name = models.CharField(max_length=30)
    description = models.TextField()
    url = models.TextField()
    created_at = models.DateTimeField()
    objects = PostsManager()
