)]}'
{"openstack_dashboard/dashboards/admin/metering/forms.py":[{"author":{"_account_id":2455,"name":"Tihomir Trifonov","email":"t.trifonov@gmail.com","username":"ttrifonov"},"change_message_id":"46d988fab435cf7d2bdd43559d86e099ac35d1b9","unresolved":false,"context_lines":[{"line_number":37,"context_line":"                                attrs\u003d{\u0027data-date-picker\u0027: \u0027True\u0027}))"},{"line_number":38,"context_line":"    date_to \u003d forms.DateField(label\u003d_(\"To\"), required\u003dFalse,"},{"line_number":39,"context_line":"                              widget\u003dforms.TextInput("},{"line_number":40,"context_line":"                              attrs\u003d{\u0027data-date-picker\u0027: \u0027True\u0027}))"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def clean_date_from(self):"},{"line_number":43,"context_line":"        period \u003d self.cleaned_data[\u0027period\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_d88a35bf","line":40,"updated":"2015-06-23 13:17:03.000000000","message":"This fix is fine and does the job, but why not changing the code here: https://github.com/openstack/horizon/blob/fec2f644dc78f2edfebf15b7ac7e8188fe2c67c9/horizon/static/horizon/js/horizon.metering.js#L3\n\nand instead of:\n\n    horizon.datepickers.add(\u0027input[data-date-picker\u003d\"True\"]\u0027);\n\n\nto write it as:\n\n    horizon.datepickers.add(\u0027input[data-date-picker]\u0027);\n\nSince the value doesn\u0027t matter, we can only check if the data attribute is present.","commit_id":"137a17c6e826a85033d322105a9bc2370cf34778"},{"author":{"_account_id":2455,"name":"Tihomir Trifonov","email":"t.trifonov@gmail.com","username":"ttrifonov"},"change_message_id":"adfd5279b49cdbb2c191d0903aa4dd88b5085374","unresolved":false,"context_lines":[{"line_number":37,"context_line":"                                attrs\u003d{\u0027data-date-picker\u0027: \u0027True\u0027}))"},{"line_number":38,"context_line":"    date_to \u003d forms.DateField(label\u003d_(\"To\"), required\u003dFalse,"},{"line_number":39,"context_line":"                              widget\u003dforms.TextInput("},{"line_number":40,"context_line":"                              attrs\u003d{\u0027data-date-picker\u0027: \u0027True\u0027}))"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def clean_date_from(self):"},{"line_number":43,"context_line":"        period \u003d self.cleaned_data[\u0027period\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_8bac2e89","line":40,"in_reply_to":"fa32b979_9966ec4f","updated":"2015-06-24 08:12:32.000000000","message":"Ah, that\u0027s fine, then do not remove this change, just add the simple jquery filter in horizon.metering.js. Since the value of data-date-picker doesn\u0027t matter, we should skip the \u003d\u003d\"True\" part anyway. For me this seems simpler and clearer.","commit_id":"137a17c6e826a85033d322105a9bc2370cf34778"},{"author":{"_account_id":4264,"name":"Matthias Runge","email":"mrunge@redhat.com","username":"mrunge"},"change_message_id":"8437939381536028c28650493cb54a3c0f236e31","unresolved":false,"context_lines":[{"line_number":37,"context_line":"                                attrs\u003d{\u0027data-date-picker\u0027: \u0027True\u0027}))"},{"line_number":38,"context_line":"    date_to \u003d forms.DateField(label\u003d_(\"To\"), required\u003dFalse,"},{"line_number":39,"context_line":"                              widget\u003dforms.TextInput("},{"line_number":40,"context_line":"                              attrs\u003d{\u0027data-date-picker\u0027: \u0027True\u0027}))"},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"    def clean_date_from(self):"},{"line_number":43,"context_line":"        period \u003d self.cleaned_data[\u0027period\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_9966ec4f","line":40,"in_reply_to":"fa32b979_d88a35bf","updated":"2015-06-23 14:57:28.000000000","message":"This way, it works with all Django versions. With Django \u003c\u003d1.7, the old style is represented as data-date-picker\u003d\"True\" in html. With the change, it works in all versions the same.\n\nWith your proposal, it breaks tests several ways, e.g in aggregates views. attrs has to be a real dict with keys and values.","commit_id":"137a17c6e826a85033d322105a9bc2370cf34778"}]}
