Bug #6633
Username column size too small
100%
Description
After an error and inspecting a database I noted that the auth_user username column was set as varchar(30), obviously too small for the generated username of the new registration process (32 characters).
There's an hack in authentic to alter the user model but it looks like it fails in some situation.
(for debugging purpose the error occured on imio.authentic.dev.entrouvert.org, where I later on manually changed the column).
Files
Associated revisions
History
Updated by Benjamin Dauvergne almost 8 years ago
auth.* models are built by the migration system with Django 1.7 so modifying the model itself has no effect; is it mandatory for you to use Django 1.7 with a2 now ? It's still not completely supported (no Django 1.7 initial migrations).
The starting access control branch has a prelude where I move away from contrib.auth user model to use our own custom user model; I could integrate it in master this week; another possibility would be to provide our own django.contrib.auth.migrations for Django 1.7 only in the meantime.
Updated by Benjamin Dauvergne almost 8 years ago
- File 0001-override-default-migrations-for-django.contrib.auth-.patch added
- Assignee changed from Serghei Mihai to Benjamin Dauvergne
- Target version set to 2.2.0
This patch is a temporary fix until we adopt a custom user model for a2. It overrides default django migrations for django.contrib.auth with our own.
Updated by Benjamin Dauvergne almost 8 years ago
- File deleted (
0001-override-default-migrations-for-django.contrib.auth-.patch)
Updated by Benjamin Dauvergne almost 8 years ago
- File 0001-override-default-migrations-for-django.contrib.auth-.patch added
Updated by Benjamin Dauvergne almost 8 years ago
- File deleted (
0001-override-default-migrations-for-django.contrib.auth-.patch)
Updated by Benjamin Dauvergne almost 8 years ago
- Status changed from Nouveau to Solution déployée
Updated by Benjamin Dauvergne almost 8 years ago
- Status changed from Solution déployée to Résolu (à déployer)
Updated by Benjamin Dauvergne almost 7 years ago
- Status changed from Résolu (à déployer) to Solution déployée
override default migrations for django.contrib.auth in order to resize the username end email fields (#6633)