Django

Code

Ticket #4748 (new)

Opened 3 years ago

Last modified 1 year ago

contrib.auth: Increase length of names of permissions

Reported by: Thomas Güttler <hv@tbz-pariv.de> Assigned to: nobody
Milestone: Component: django.contrib.admin
Version: SVN Keywords: dbchange
Cc: remco@diji.biz, hv@tbz-pariv.de Triage Stage: Accepted
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

Hi,

here is a small patch to increase the length of permission names. We hit 53 characters. 100 should be save.

Attachments

models_py.diff (0.6 kB) - added by Thomas Güttler <hv@tbz-pariv.de> on 07/03/07 04:19:06.

Change History

07/03/07 04:19:06 changed by Thomas Güttler <hv@tbz-pariv.de>

  • attachment models_py.diff added.

07/03/07 04:20:28 changed by Thomas Güttler <hv@tbz-pariv.de>

  • needs_better_patch changed.
  • component changed from Uncategorized to Admin interface.
  • needs_tests changed.
  • owner changed from jacob to adrian.
  • needs_docs changed.
  • has_patch set to 1.

07/03/07 10:22:30 changed by adrian

This is technically a backwards-incompatible change to the database table layout, so if we do this, we'll have to provide instructions for people to convert their tables.

07/15/07 23:21:47 changed by Simon G. <dev@simon.net.nz>

  • summary changed from contrib/auth: Increase length of names of permissions to contrib.auth: Increase length of names of permissions.
  • stage changed from Unreviewed to Design decision needed.

09/16/07 15:05:44 changed by ubernostrum

#4129 was a duplicate, but also has a patch.

11/09/07 05:50:25 changed by remco@di

  • cc set to remco@diji.biz.

12/02/07 14:23:25 changed by jacob

  • keywords set to dbchange.
  • stage changed from Design decision needed to Accepted.

03/14/08 05:47:50 changed by guettli

  • cc changed from remco@diji.biz to remco@diji.biz, hv@tbz-pariv.de.

04/23/08 08:16:24 changed by guettli

If you don't want to modify django code, you can use a post_syncdb signal hook.

I created a django snippet, to increase the length after syndb is run:

http://www.djangosnippets.org/snippets/718/

10/24/08 13:55:38 changed by anonymous


Add/Change #4748 (contrib.auth: Increase length of names of permissions)




Change Properties
Action