Projet

Général

Profil

Bug #6633

Username column size too small

Ajouté par Frédéric Péters il y a environ 9 ans. Mis à jour il y a plus de 6 ans.

Statut:
Fermé
Priorité:
Haut
Assigné à:
Catégorie:
-
Version cible:
Début:
08 mars 2015
Echéance:
% réalisé:

100%

Temps estimé:
Patch proposed:
Oui
Planning:

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

Révision ed8ba6d5 (diff)
Ajouté par Benjamin Dauvergne il y a environ 9 ans

override default migrations for django.contrib.auth in order to resize the username end email fields (#6633)

Historique

#1

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

Are you using Django 1.7 ?

#2

Mis à jour par Frédéric Péters il y a environ 9 ans

Indeed it's 1.7.

#3

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.

#4

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.

#5

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

  • Fichier 0001-override-default-migrations-for-django.contrib.auth-.patch supprimé
#6

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

  • Fichier 0001-override-default-migrations-for-django.contrib.auth-.patch ajouté
#7

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

  • Patch proposed changé de Non à Oui
#8

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

  • Fichier 0001-override-default-migrations-for-django.contrib.auth-.patch supprimé
#10

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

  • Statut changé de Nouveau à Solution déployée
#11

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

  • Statut changé de Solution déployée à Résolu (à déployer)
#12

Mis à jour par Benjamin Dauvergne il y a environ 9 ans

  • % réalisé changé de 0 à 100
#13

Mis à jour par Benjamin Dauvergne il y a environ 8 ans

  • Statut changé de Résolu (à déployer) à Solution déployée
#14

Mis à jour par Benjamin Dauvergne il y a plus de 6 ans

  • Statut changé de Solution déployée à Fermé

Formats disponibles : Atom PDF