virtualenv/web/res/patch/piston.diff
author ymh <ymh.work@gmail.com>
Tue, 06 Nov 2012 14:40:44 +0100
changeset 896 72f7ec8a8789
parent 56 125fc6df230d
permissions -rw-r--r--
add correction for platform instance which are protected by a basic http login/password.

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)