virtualenv/web/res/patch/piston.diff
author ymh <ymh.work@gmail.com>
Mon, 29 Jul 2024 23:18:55 +0200
changeset 131 2a18dfe8bfc0
parent 16 e37a29d23c86
permissions -rw-r--r--
last change before install

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)