1. Matthew Schinckel
  2. django-colour-field
  3. Issues
Issue #3 new

django-colour-field doesn't work for inputs without value

Mikhail Korobov
created an issue

Hey Matthew, I tried the app but the input value doesn't gets updated with colors selected with farbtastic so the values gets lost after form submit. Which js code is supposed to update the value?

Comments (2)

  1. Mikhail Korobov reporter

    It does work if field already contain some data (the color number is updated) but if input element doesn't have a value then the value is not updated (I think that's because numerous if this.value checks in farbtastic source code). The browser is Chrome 13, django 1.3 - inputs rendered for empty fields with 'null=True, blank=True' does not have a value attribute.

  2. Log in to comment