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).
Fichiers
Révisions associées
Historique
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
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.
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Fichier 0001-override-default-migrations-for-django.contrib.auth-.patch ajouté
- Assigné à changé de Serghei Mihai à Benjamin Dauvergne
- Version cible mis à 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.
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Fichier
0001-override-default-migrations-for-django.contrib.auth-.patchsupprimé
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Fichier 0001-override-default-migrations-for-django.contrib.auth-.patch ajouté
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Fichier
0001-override-default-migrations-for-django.contrib.auth-.patchsupprimé
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Statut changé de Nouveau à Solution déployée
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Statut changé de Solution déployée à Résolu (à déployer)
Mis à jour par Benjamin Dauvergne il y a environ 8 ans
- Statut changé de Résolu (à déployer) à Solution déployée
Mis à jour par Benjamin Dauvergne il y a plus de 6 ans
- Statut changé de Solution déployée à Fermé
override default migrations for django.contrib.auth in order to resize the username end email fields (#6633)