Fix linting errors.
parent
e5ebbe208f
commit
ef0fca7804
|
@ -1 +1 @@
|
|||
__version__ = '0.1.0'
|
||||
__version__ = '0.1.0'
|
||||
|
|
|
@ -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)])
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
from .local import Local # noqa
|
||||
from .production import Production # noqa
|
||||
from .production import Production # noqa
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -11,4 +11,4 @@ class UserAdmin(AuthUserAdmin):
|
|||
update_form_class = UserChangeForm
|
||||
|
||||
|
||||
admin.site.register(User, UserAdmin)
|
||||
admin.site.register(User, UserAdmin)
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -30,4 +30,4 @@ application = get_wsgi_application()
|
|||
|
||||
# Apply WSGI middleware here.
|
||||
# from helloworld.wsgi import HelloWorldApplication
|
||||
# application = HelloWorldApplication(application)
|
||||
# application = HelloWorldApplication(application)
|
||||
|
|
Loading…
Reference in New Issue