Nop, nothing like that.
Ok, now the behavior is changed. The problem persists just with the boolean
(when I set it to False...i have to submit twice). Text fields are ok now.
It's funny, because i have very straightforward app.
Model:
db.define_table('blog',
Field('naslov','string',label='Naslov'),
Field('slug','string',label='Strojno ime'),
Field('uvod','text',label='Uvod'),
Field('vsebina','text',label='Vsebina'),
Field('objavljeno','boolean',label='Objavljeno', default=False),
Field('datum','datetime',default=request.now),
format = lambda r: r.naslov)
Controller:
@auth.requires_membership('admin')
def uredi():
form = SQLFORM(db.blog, record=request.args(0)).process()
return dict(form=form)
View:
{{extend 'layoutno.html'}}
<style type="text/css">
textarea {width: 400px !important;}
textarea#blog_vsebina {width: 650px !important;}
.alert input {width: 150px !important;}
</style>
<div class="board">
<div class="pad60">
<h1>Uredi blog zapis</h1>
<br>
{{=form}}
</div>
</div>
On Monday, 23 July 2012 23:55:49 UTC+2, Najtsirk wrote:
>
> Hi,
>
> each time i want to update crud, i have to submit changes twice to get it
> actually updated.
>
> I set crud.settings.detect_record_change = False, which helps with 'text'
> fields, but the problem presists with 'boolean'. Boolean field get changed
> each time i update form, even though I do not change it.
>
> I'm getting this on 1.99.4 and on 1.99.7.
>
> I'm seeing this for the first time, but then again....i'm doing Blog app
> for the first time and there is a little more updating than in my other
> apps.
>
> Any clues?
>
> Best,
> Kristjan
>
>
>
--