Opened 18 years ago

Closed 18 years ago

#2890 closed enhancement (fixed)

suggest default value for User.is_staff/is_superuser

Reported by: dummy@… Owned by: Adrian Holovaty
Component: Contrib apps Version: dev
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I create user objects via 'User.objects.get_or_create(username=username)' and got SQL-warnings:

/usr/lib/python2.3/site-packages/django/db/backends/mysql/base.py:35: Warning: Incorrect integer value: for column 'is_staff' at row 1

return self.cursor.execute(sql, params)

/usr/lib/python2.3/site-packages/django/db/backends/mysql/base.py:35: Warning: Incorrect integer value: for column 'is_superuser' at row 1

return self.cursor.execute(sql, params)

I suggest default value 'False' for User.is_staff and User.is_superuser.

Change History (2)

comment:1 by Chris Beaven, 18 years ago

Potentially a dupe of #2855, glad to see other people have a problem with this too. I'll leave this open for now though.

comment:2 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

Fixed in [3930].

Note: See TracTickets for help on using tickets.
Back to Top