from django.db.models import Manager


class ScreenshotManager(Manager):
    def published(self):
        return self.get_query_set().filter(published=True)

from django.db.models import Manager


class ScreenshotManager(Manager):
    def published(self):
        return self.get_query_set().filter(published=True).order_by('uploaded_at')

Order screenshots by ascending upload time in the front-end
Order screenshots by ascending upload time in the front-end

So that it's easy to order them intentionally. :)
... Until we come up with a better ordering solution, with weights or
something.

  from django.db.models import Manager
  
  
  class ScreenshotManager(Manager):
      def published(self):
-         return self.get_query_set().filter(published=True)
+         return self.get_query_set().filter(published=True).order_by('uploaded_at')
  
Order screenshots by ascending upload time in the front-end
## Code Before:
from django.db.models import Manager


class ScreenshotManager(Manager):
    def published(self):
        return self.get_query_set().filter(published=True)

## Instruction:
Order screenshots by ascending upload time in the front-end
## Code After:
from django.db.models import Manager


class ScreenshotManager(Manager):
    def published(self):
        return self.get_query_set().filter(published=True).order_by('uploaded_at')
