Changes between Initial Version and Version 1 of Ticket #19463, comment 12


Ignore:
Timestamp:
Jul 5, 2013, 4:06:02 AM (11 years ago)
Author:
loic84

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19463, comment 12

    initial v1  
    11Big +1 on @akaariai's GeneratedField idea.
    22
    3 For example I use extensively what I call a "readable unique ID", similar to YouTube video IDs (i.e. "sc5vraPpTcA") for which I made a custom Field. It functions like a UUID but trades the creation convenience (guaranteed uniqueness) for usage convenience (being able to read it out load, shorter URL, etc.). A GeneratedField would allow me to implement that cleanly.
     3For example I use extensively what I call a "readable unique ID", similar to YouTube video IDs (i.e. "sc5vraPpTcA"), for which I made a custom Field. It functions like a UUID but trades the creation convenience (guaranteed uniqueness) for usage convenience (being able to read it out loud, shorter URL, etc.). A GeneratedField would allow me to implement that cleanly.
    44
    55That said, some databases have native support for UUIDs and it's pretty much the standard for sharding, so we could have the generic GeneratedField and a UUIDField subclass.
Back to Top