Sorry, I am just blind as a bat. I didn't realize that there were two
settings with very similar names.
On Mon, Sep 15, 2014 at 6:09 PM, Michael Martin
wrote:
> Is it possible to default a integer to a negative number with Django
> Modeling?
>
> I did the following, but the value in the display
Dam, on top of that I marked the fields as editable=False and it wasn't
working as expected. I was able to change the value from 1 to 2 using the
Admin. Why isn't this working?
I read here that it should work,
https://docs.djangoproject.com/en/1.7/ref/models/fields/#editable
editableIf False,
Is it possible to default a integer to a negative number with Django
Modeling?
I did the following, but the value in the display shows 1 not -1
ces_out_servicegrid_polling_interval=models.IntegerField(default=-1,
editable=False)
--
You received this message because you are subscribed to the Go
3 matches
Mail list logo