Created
March 10, 2013 15:57
-
-
Save hgdeoro/5129110 to your computer and use it in GitHub Desktop.
Django Optimistic Locking: Use a Meta option
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Article(models.Model): | |
headline = models.CharField(max_length=100, default='Default headline') | |
pub_date = models.DateTimeField() | |
Meta: | |
optimistic_locking = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment