Commits

Andy Mikhailenko committed df6fac3

Removed stray argument in the method BaseSchema.get_choices and updated documentation for this method (thanks to Adrien Lemaire, re issue #7).

  • Participants
  • Parent commits 7649b54

Comments (0)

Files changed (3)

 * Jordi Llonch
 * alTus
 * Felipe Vieira
+* Adrien Lemaire
 * Your Name Here  ;)
         return u'%s (%s)%s' % (self.title, self.get_datatype_display(),
                                 u' %s'%_('required') if self.required else '')
 
-    def get_choices(self, entity=None):
+    def get_choices(self):
         """
-        Returns a list of name/title tuples::
-
-            schema.get_choices()    # --> [("green", "Green color"), ("red", "Red color")]
-
-        Names are used for lookups, titles are displayed to user.
-
-        This method must be overloaded by subclasses of BaseSchema to enable
-        many-to-one schemata machinery.
+        Returns a queryset of choice objects bound to this schema.
         """
         return self.choices.all()
 
     long_description = readme,
 
     # technical info
-    version  = '1.4.1',
+    version  = '1.4.2',
     packages = ['eav'],
     requires = ['python (>= 2.5)', 'django (>= 1.1)',
                 'django_autoslug (>= 1.3.9)',