-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from spaceby/master
Correction of warnings related to the use of the native date.
- Loading branch information
Showing
23 changed files
with
157 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
ignore = | ||
; PyFlakes errors | ||
; F405 name may be undefined, or defined from star imports: module | ||
F405 | ||
W503 | ||
; does not apply to python3. https://github.com/PyCQA/bandit/issues/402 | ||
S322 | ||
; disable paranoidal checking for password/token in strings | ||
S105 | ||
max-complexity = 10 | ||
|
||
exclude = | ||
*/migrations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[settings] | ||
line_length=120 | ||
multi_line_output=3 | ||
balanced_wrapping=true | ||
not_skip=__init__.py | ||
skip=migrations,deployer | ||
include_trailing_comma=true | ||
|
||
known_django=django | ||
known_rest=rest_framework | ||
sections=FUTURE,STDLIB,DJANGO,REST,THIRDPARTY,FIRSTPARTY,LOCALFOLDER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
from django.contrib import admin | ||
|
||
from drf_secure_token.models import Token | ||
|
||
|
||
@admin.register(Token) | ||
class TokenAdmin(admin.ModelAdmin): | ||
list_display = ('key', 'user', 'created', 'marked_for_delete') | ||
ordering = ('-created',) | ||
readonly_fields = ('key',) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Generated by Django 2.2.1 on 2019-09-20 10:44 | ||
|
||
from django.db import migrations, models | ||
import drf_secure_token.abstract_models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('drf_secure_token', '0006_auto_20170227_1945'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='token', | ||
name='dead_in', | ||
field=models.DateTimeField(default=drf_secure_token.abstract_models.DyingTokenMixin.default_dead_time), | ||
), | ||
migrations.AlterField( | ||
model_name='token', | ||
name='expire_in', | ||
field=models.DateTimeField(default=drf_secure_token.abstract_models.ExpiredTokenMixin.default_expire_time), | ||
), | ||
migrations.AlterField( | ||
model_name='token', | ||
name='key', | ||
field=models.CharField(blank=True, default=drf_secure_token.abstract_models.BaseToken.generate_key, max_length=40, unique=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import os | ||
|
||
from setuptools import setup | ||
|
||
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: | ||
|
@@ -9,7 +10,7 @@ | |
|
||
setup( | ||
name='drf-secure-token', | ||
version='1.0.3', | ||
version='1.0.4', | ||
packages=['drf_secure_token', 'drf_secure_token/migrations'], | ||
include_package_data=True, | ||
license='BSD License', | ||
|
@@ -18,7 +19,7 @@ | |
url='', | ||
author='Tima Akulich', | ||
author_email='[email protected]', | ||
install_requires=['djangorestframework', ], | ||
install_requires=['djangorestframework'], | ||
classifiers=[ | ||
'Environment :: Web Environment', | ||
'Framework :: Django', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.