djangosnippets.org: Latest snippets posted by djangomanhttps://djangosnippets.org/users/djangoman/2010-01-14T14:44:34.987314-06:00djangomanUsername filled automatically with id
2010-01-14T14:44:34.987314-06:00djangomanhttps://djangosnippets.org/snippets/1867/<p>I thought this code for insert automatically id in username field.
This method should be used in save method.
This code work on a dbms that support transactions ( example: mysql+innodb or postgresql ).</p>
<p>Let me know what you think about this snippet and if you advice an alternative solution …</p>
Freely redistributable