1
0
Fork 0

Fix linting errors.

merge-requests/12/head
John Giannelos 2014-09-01 23:31:22 +03:00
parent e5ebbe208f
commit ef0fca7804
10 changed files with 10 additions and 9 deletions

View File

@ -1 +1 @@
__version__ = '0.1.0'
__version__ = '0.1.0'

View File

@ -27,6 +27,7 @@ class Transponder(models.Model):
invert = models.BooleanField()
baud = models.FloatField(validators=[MinValueValidator(0)])
class Antenna(models.Model):
"""Model for antennas tracked with SatNOGS."""
frequency = models.FloatField(validators=[MinValueValidator(0)])

View File

@ -4,8 +4,9 @@ from django import template
register = template.Library()
@register.simple_tag
def active(request, pattern):
if re.search(pattern, request.path):
return 'active'
return None
return None

View File

@ -2,4 +2,4 @@
from __future__ import absolute_import
from .local import Local # noqa
from .production import Production # noqa
from .production import Production # noqa

View File

@ -218,7 +218,7 @@ class Common(Configuration):
ACCOUNT_EMAIL_REQUIRED = True
ACCOUNT_EMAIL_VERIFICATION = "mandatory"
# END AUTHENTICATION CONFIGURATION
# Custom user app defaults
# Select the correct user model
AUTH_USER_MODEL = "users.User"

View File

@ -41,4 +41,4 @@ class Local(Common):
}
# end django-debug-toolbar
# Your local stuff: Below this line define 3rd party libary settings
# Your local stuff: Below this line define 3rd party libary settings

View File

@ -8,4 +8,4 @@ if __name__ == "__main__":
from configurations.management import execute_from_command_line
execute_from_command_line(sys.argv)
execute_from_command_line(sys.argv)

View File

@ -11,4 +11,4 @@ class UserAdmin(AuthUserAdmin):
update_form_class = UserChangeForm
admin.site.register(User, UserAdmin)
admin.site.register(User, UserAdmin)

View File

@ -2,7 +2,6 @@
from django.contrib.auth.models import AbstractUser
from django.core.validators import MaxLengthValidator
from django.db import models
from django.utils.translation import ugettext_lazy as _
class User(AbstractUser):

View File

@ -30,4 +30,4 @@ application = get_wsgi_application()
# Apply WSGI middleware here.
# from helloworld.wsgi import HelloWorldApplication
# application = HelloWorldApplication(application)
# application = HelloWorldApplication(application)