Changes between Initial Version and Version 1 of Ticket #19463, comment 12
- Timestamp:
- Jul 5, 2013, 4:06:02 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19463, comment 12
initial v1 1 1 Big +1 on @akaariai's GeneratedField idea. 2 2 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.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 loud, shorter URL, etc.). A GeneratedField would allow me to implement that cleanly. 4 4 5 5 That 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.