ok, now to read Django source to see how ValidatorClasses are deconstruct()ed
FunkyBob and justinabrahms, thanks again!
Dominee joined the channel
Cormite joined the channel
capella-da-star has quit
jlec has left the channel
grumpi has quit
garrypolley joined the channel
hyperair joined the channel
sturm joined the channel
limbera has quit
Cormite has quit
sp1rs has quit
sp1rs joined the channel
garrypolley has quit
jax joined the channel
grumpi joined the channel
heatmeiser joined the channel
jaykay joined the channel
SpoutBE joined the channel
buzzzz_ joined the channel
buzzzz has quit
pilva joined the channel
pilva has quit
capella-da-star joined the channel
x86kernel joined the channel
x86kernel
hi, all
i have one question
I have a view which contain "save()" code
when i submit a lot of forms in short time, it saves all of submitted data
i want prevent it, how can i solve this problem?
odigem joined the channel
josuebrunel joined the channel
jiang42 has quit
capella-da-star has quit
jiang42 joined the channel
ticketbot has quit
ticketbot joined the channel
ycon_ joined the channel
Dominee has quit
mcspud joined the channel
youser joined the channel
ycon_ has quit
fllr has quit
ycon_ joined the channel
chronodekar joined the channel
jinzo joined the channel
capella-da-star joined the channel
ohrstrom has quit
Dominee joined the channel
jiang42 joined the channel
Boogymanx joined the channel
Boogymanx has quit
michalmo joined the channel
garrypolley joined the channel
jaywink joined the channel
x86kernel has quit
jaykay has quit
Zeograd has quit
mossplix_ joined the channel
garrypolley has quit
merb joined the channel
m8 joined the channel
sturm has quit
sturm joined the channel
rajalokan has quit
atlasloewenherz joined the channel
telex joined the channel
jaywink has quit
murk joined the channel
ycon_ has quit
pilva joined the channel
fesener_ joined the channel
fesener_
Hello everyone, since django-googlesearch is not working anymore on django 1.8, does anyone know how can I implement google custom search to my django website?
pytony joined the channel
acangiani joined the channel
Dominee has quit
mossplix_ has quit
mossplix joined the channel
acangiani has quit
mossplix has quit
capella-da-star has quit
acangiani joined the channel
Ratler joined the channel
vranac joined the channel
ohrstrom joined the channel
mossplix_ joined the channel
mossplix_ has quit
acangiani has quit
_t0mb0_ joined the channel
pytony
hi
acangiani joined the channel
What is a form Field.prepare_value supposed to return?
I subclassed TypedMultipleChoiceField, but get TypeError 'int' object is not iterable, the error seems to come from that prepare_value method
pte_petey joined the channel
acangiani has quit
atlasloewenherz has quit
`if type(value) is not list: value = []; return value` seems to solve my issue
x86kernel joined the channel
txomon|home joined the channel
schinckel
pytony: Field.clean() is supposed to handle that (in this case, it delegates to ._coerce(), which looks for empty values, and returns a list if this is one).
Siphion joined the channel
blipped has quit
blipped joined the channel
x86kernel has quit
pytony
schinckel: thanks, then I should rather do the conversion in _coerce
fesener_
Can someone tell me how can I handle my haystack template? Example only shows "{{ result.object.title }}" as a result but i have models without "title" field in it
schinckel
No, you shouldn't touch _coerce.
pytony: If all you need to do is coerce values, then you shouldn't need to subclass, just pass in a coerce() function.
disable the button using JS? have a version/sequence/nonce on the form?
pytony
in my case I think I have to do coerce=(lambda x: x if type(x) is list else [])
especially, 0 should be treated as []
Dominee has quit
j1fig joined the channel
FunkyBob
pytony: why not just "x if x else []" ?
bibhas joined the channel
at least use isinstance(x, list) instead of type
pytony
ah yeah much better x)
atlasloewenherz has quit
xBBTx joined the channel
fesener_
Can someone tell me how can I handle my haystack template? Example only shows "{{ result.object.title }}" as a result but i have models without "title" field in it, how people usually manage to make single search page for whole models?