Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Re-Import some DB fields

Roland Geider69acd2241ea1
diff --git a/wger/utils/fields.py b/wger/utils/fields.py
index d37ddf85e..e75ef7b18 100644
--- a/wger/utils/fields.py
+++ b/wger/utils/fields.py
@@ -22,6 +22,17 @@ from wger.utils.widgets import Html5FormTimeField
logger = logging.getLogger('wger.custom')
+#
+#
+# Please note: it is necessary to import these fields with these names,
+# otherwise migrating from older versions will not work. Only if the migrations
+# are squashed one day (perhaps with django 1.7), can the imports be removed.
+#
+#
+from django.db.models import DecimalField as Html5DecimalField
+from django.db.models import FloatField as Html5FloatField
+from django.db.models import IntegerField as Html5IntegerField
+
class Html5TimeField(models.TimeField):
'''