From c4263ce24e840bb22ab5bed070acf0cf933dc8b4 Mon Sep 17 00:00:00 2001
From: Dominik George <nik@naturalnet.de>
Date: Wed, 1 Aug 2018 23:36:39 +0200
Subject: [PATCH] Actually parse stars count list to template.

---
 django_starfield/widgets.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/django_starfield/widgets.py b/django_starfield/widgets.py
index 285fa46..e070369 100644
--- a/django_starfield/widgets.py
+++ b/django_starfield/widgets.py
@@ -9,5 +9,5 @@ class Stars(Widget):
 
     def get_context(self, name, value, attrs):
         context = super(Stars, self).get_context(name, value, attrs)
-        context['stars'] = self.stars
+        context['stars'] = range(self.stars, 0, -1)
         return context
-- 
GitLab