aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/models.py
diff options
context:
space:
mode:
authortilly-Q <nattilypigeonfowl@gmail.com>2014-04-22 13:32:47 -0400
committertilly-Q <nattilypigeonfowl@gmail.com>2014-04-22 14:36:23 -0400
commit7918f86ac0dd55a7be863bf29a074b4edbe4b656 (patch)
tree13d53b04dbce20ddae2fe9cc7dd0e4d0f957d8cb /mediagoblin/db/models.py
parente36bb0ee18e1209b747aab4ea4d2539872fd694f (diff)
downloadmediagoblin-7918f86ac0dd55a7be863bf29a074b4edbe4b656.tar.lz
mediagoblin-7918f86ac0dd55a7be863bf29a074b4edbe4b656.tar.xz
mediagoblin-7918f86ac0dd55a7be863bf29a074b4edbe4b656.zip
Renamed the columns on core__privileges_users table so that they are unique and
will not cause any more problems.
Diffstat (limited to 'mediagoblin/db/models.py')
-rw-r--r--mediagoblin/db/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/db/models.py b/mediagoblin/db/models.py
index b750375d..58635419 100644
--- a/mediagoblin/db/models.py
+++ b/mediagoblin/db/models.py
@@ -876,12 +876,12 @@ class PrivilegeUserAssociation(Base):
__tablename__ = 'core__privileges_users'
privilege_id = Column(
- 'core__privilege_id',
+ 'id_of_privilege',
Integer,
ForeignKey(User.id),
primary_key=True)
user_id = Column(
- 'core__user_id',
+ 'id_of_user',
Integer,
ForeignKey(Privilege.id),
primary_key=True)