Archives
-
Create/update function for CLSQL
Django has a very handy model method in its database library called get_or_create, which either creates a new record using the keyword arguments passed as field values or gets a record using the arguments passed. Submit article
May 9th, 2008 | Filed under Programming