Simple app to add configuration options to a Django project.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #5 from saruba/master

Convert value in a option list

authored by

Marcos Gabarda and committed by
GitHub
79497b0e 7c6b8aa3

+1 -1
+1 -1
options/models.py
··· 49 49 return convert_value(self.value, self.type) 50 50 else: 51 51 values = self.value.split(",") 52 - return [convert_value(type, value) for value in values] 52 + return [convert_value(value, self.type) for value in values] 53 53 54 54 def clean(self): 55 55 """Calls to the converter to check the type conversion. Added exception