Project

General

Profile

Bug #6633

Username column size too small

Added by Frédéric Péters almost 5 years ago. Updated about 2 years ago.

Status:
Fermé
Priority:
Haut
Category:
-
Target version:
Start date:
08 Mar 2015
Due date:
% Done:

100%

Patch proposed:
Yes
Planning:
No

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).

0001-override-default-migrations-for-django.contrib.auth-.patch View (6.73 KB) Benjamin Dauvergne, 23 Mar 2015 05:21 PM

Associated revisions

Revision ed8ba6d5 (diff)
Added by Benjamin Dauvergne over 4 years ago

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

History

#1 Updated by Benjamin Dauvergne over 4 years ago

Are you using Django 1.7 ?

#2 Updated by Frédéric Péters over 4 years ago

Indeed it's 1.7.

#3 Updated by Benjamin Dauvergne over 4 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.

#4 Updated by Benjamin Dauvergne over 4 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.

#5 Updated by Benjamin Dauvergne over 4 years ago

  • File deleted (0001-override-default-migrations-for-django.contrib.auth-.patch)

#6 Updated by Benjamin Dauvergne over 4 years ago

  • File 0001-override-default-migrations-for-django.contrib.auth-.patch added

#7 Updated by Benjamin Dauvergne over 4 years ago

  • Patch proposed changed from No to Yes

#8 Updated by Benjamin Dauvergne over 4 years ago

  • File deleted (0001-override-default-migrations-for-django.contrib.auth-.patch)

#10 Updated by Benjamin Dauvergne over 4 years ago

  • Status changed from Nouveau to Solution déployée

#11 Updated by Benjamin Dauvergne over 4 years ago

  • Status changed from Solution déployée to Résolu (à déployer)

#12 Updated by Benjamin Dauvergne over 4 years ago

  • % Done changed from 0 to 100

#13 Updated by Benjamin Dauvergne almost 4 years ago

  • Status changed from Résolu (à déployer) to Solution déployée

#14 Updated by Benjamin Dauvergne about 2 years ago

  • Status changed from Solution déployée to Fermé

Also available in: Atom PDF