virtualenv/web/res/patch/piston.diff
author verrierj
Wed, 04 Jan 2012 11:20:13 +0100
changeset 328 8a626a7a66bf
parent 56 125fc6df230d
permissions -rw-r--r--
User or groups are not deleted when they are changed from edition to view in permission form

diff -r 278:c4b2d21db51a piston/models.py
@@ -118 +118 @@
    timestamp = models.IntegerField()
    is_approved = models.BooleanField(default=False)

-   user = models.ForeignKey(User, null=True, blank=True, related_name='tokens')
+   user = models.ForeignKey(User, null=True, blank=True, related_name='piston_tokens')
    consumer = models.ForeignKey(Consumer)