diff options
author | Theo Chatzimichos <tampakrap@gentoo.org> | 2013-07-09 12:26:56 +0200 |
---|---|---|
committer | Theo Chatzimichos <tampakrap@gentoo.org> | 2013-07-09 12:26:56 +0200 |
commit | 0025e12f1f9376c10217605540ef1b0f6c876235 (patch) | |
tree | 0bed7ee3cc9793ee63c83956f01475216166d3d4 /okupy/accounts/models.py | |
parent | Merge pull request #21 from tampakrap/pep8_v3 (diff) | |
download | identity.gentoo.org-0025e12f1f9376c10217605540ef1b0f6c876235.tar.gz identity.gentoo.org-0025e12f1f9376c10217605540ef1b0f6c876235.tar.bz2 identity.gentoo.org-0025e12f1f9376c10217605540ef1b0f6c876235.zip |
Fix all pep8 issues apart from:
1) tests/*
2) settings/*
3) urls.py
./okupy/urls.py:7:5: E128 continuation line under-indented for visual indent
./okupy/accounts/urls.py:9:5: E128 continuation line under-indented for visual indent
4) setup.py
./setup.py:14:80: E501 line too long (85 characters)
./setup.py:23:80: E501 line too long (93 characters)
./setup.py:32:80: E501 line too long (81 characters)
Diffstat (limited to 'okupy/accounts/models.py')
-rw-r--r-- | okupy/accounts/models.py | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/okupy/accounts/models.py b/okupy/accounts/models.py index 859fe73..190137a 100644 --- a/okupy/accounts/models.py +++ b/okupy/accounts/models.py @@ -2,6 +2,7 @@ from django.db import models + class Queue(models.Model): username = models.CharField(max_length=100, unique=True) password = models.CharField(max_length=30) @@ -12,22 +13,24 @@ class Queue(models.Model): # Models for OpenID data store + class OpenID_Nonce(models.Model): + server_uri = models.URLField(max_length=2048) + ts = models.DateTimeField() + salt = models.CharField(max_length=40) + class Meta: unique_together = ('server_uri', 'ts', 'salt') - server_uri = models.URLField(max_length = 2048) - ts = models.DateTimeField() - salt = models.CharField(max_length = 40) class OpenID_Association(models.Model): - class Meta: - unique_together = ('server_uri', 'handle') - - server_uri = models.URLField(max_length = 2048) - handle = models.CharField(max_length = 255) - # XXX: BinaryField in newer versions of django - secret = models.CharField(max_length = 128) + server_uri = models.URLField(max_length=2048) + handle = models.CharField(max_length=255) + # TODO: BinaryField in newer versions of django + secret = models.CharField(max_length=128) issued = models.DateTimeField() expires = models.DateTimeField() - assoc_type = models.CharField(max_length = 64) + assoc_type = models.CharField(max_length=64) + + class Meta: + unique_together = ('server_uri', 'handle') |