Opened 18 years ago
Closed 18 years ago
#2890 closed enhancement (fixed)
suggest default value for User.is_staff/is_superuser
Reported by: | 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.
Potentially a dupe of #2855, glad to see other people have a problem with this too. I'll leave this open for now though.