From 482b2e67a190634e5615923a512f888d0a0da311 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Valentin=20Grou=C3=A8s?= <valentin.groues@uni.lu>
Date: Mon, 27 Mar 2017 15:33:02 +0200
Subject: [PATCH] remove author name automatically added by IDE

---
 smash/web/models/__init__.py         | 2 --
 smash/web/models/appointment.py      | 2 --
 smash/web/models/appointment_type.py | 2 --
 smash/web/models/avaibility.py       | 2 --
 smash/web/models/constants.py        | 1 -
 smash/web/models/flying_team.py      | 2 --
 smash/web/models/holiday.py          | 2 --
 smash/web/models/item.py             | 2 --
 smash/web/models/language.py         | 2 --
 smash/web/models/location.py         | 2 --
 smash/web/models/room.py             | 2 --
 smash/web/models/subject.py          | 2 --
 smash/web/models/visit.py            | 2 --
 smash/web/models/worker.py           | 2 --
 smash/web/views/__init__.py          | 1 -
 smash/web/views/appointment.py       | 7 +++----
 smash/web/views/auth.py              | 2 --
 smash/web/views/doctor.py            | 2 --
 smash/web/views/equipment.py         | 2 --
 smash/web/views/export.py            | 2 --
 smash/web/views/kit.py               | 2 --
 smash/web/views/mails.py             | 2 --
 smash/web/views/notifications.py     | 2 --
 smash/web/views/statistics.py        | 2 --
 smash/web/views/subject.py           | 5 ++---
 smash/web/views/visit.py             | 2 --
 26 files changed, 5 insertions(+), 53 deletions(-)

diff --git a/smash/web/models/__init__.py b/smash/web/models/__init__.py
index 553a5448..8b5de969 100644
--- a/smash/web/models/__init__.py
+++ b/smash/web/models/__init__.py
@@ -18,8 +18,6 @@ from item import Item
 from language import Language
 from subject import Subject
 
-__author__ = 'Valentin Grouès'
-
 
 def get_current_year():
     return datetime.datetime.now().year
diff --git a/smash/web/models/appointment.py b/smash/web/models/appointment.py
index f71d2bbb..59128c6e 100644
--- a/smash/web/models/appointment.py
+++ b/smash/web/models/appointment.py
@@ -6,8 +6,6 @@ from django.db import models
 from constants import APPOINTMENT_TYPE_DEFAULT_COLOR, APPOINTMENT_TYPE_DEFAULT_FONT_COLOR
 from . import FlyingTeam, Location, Room, Visit, Worker
 
-__author__ = 'Valentin Grouès'
-
 
 class Appointment(models.Model):
     class Meta:
diff --git a/smash/web/models/appointment_type.py b/smash/web/models/appointment_type.py
index 9b3e48dc..84304f46 100644
--- a/smash/web/models/appointment_type.py
+++ b/smash/web/models/appointment_type.py
@@ -3,8 +3,6 @@ from django.db import models
 
 from constants import APPOINTMENT_TYPE_DEFAULT_COLOR, APPOINTMENT_TYPE_DEFAULT_FONT_COLOR
 
-__author__ = 'Valentin Grouès'
-
 
 class AppointmentType(models.Model):
     class Meta:
diff --git a/smash/web/models/avaibility.py b/smash/web/models/avaibility.py
index bbc465ad..d4487587 100644
--- a/smash/web/models/avaibility.py
+++ b/smash/web/models/avaibility.py
@@ -1,8 +1,6 @@
 # coding=utf-8
 from django.db import models
 
-__author__ = 'Valentin Grouès'
-
 
 class Avaibility(models.Model):
     class Meta:
diff --git a/smash/web/models/constants.py b/smash/web/models/constants.py
index 1d8ad089..19d93238 100644
--- a/smash/web/models/constants.py
+++ b/smash/web/models/constants.py
@@ -1,5 +1,4 @@
 # coding=utf-8
-__author__ = 'Valentin Grouès'
 BOOL_CHOICES = ((True, 'Yes'), (False, 'No'))
 SEX_CHOICES_MALE = 'M'
 SEX_CHOICES_FEMALE = 'F'
diff --git a/smash/web/models/flying_team.py b/smash/web/models/flying_team.py
index 04d6f670..e44dc127 100644
--- a/smash/web/models/flying_team.py
+++ b/smash/web/models/flying_team.py
@@ -1,8 +1,6 @@
 # coding=utf-8
 from django.db import models
 
-__author__ = 'Valentin Grouès'
-
 
 class FlyingTeam(models.Model):
     class Meta:
diff --git a/smash/web/models/holiday.py b/smash/web/models/holiday.py
index 6e3f37b4..113df03a 100644
--- a/smash/web/models/holiday.py
+++ b/smash/web/models/holiday.py
@@ -1,8 +1,6 @@
 # coding=utf-8
 from django.db import models
 
-__author__ = 'Valentin Grouès'
-
 
 class Holiday(models.Model):
     class Meta:
diff --git a/smash/web/models/item.py b/smash/web/models/item.py
index 89467831..b27f729c 100644
--- a/smash/web/models/item.py
+++ b/smash/web/models/item.py
@@ -1,8 +1,6 @@
 # coding=utf-8
 from django.db import models
 
-__author__ = 'Valentin Grouès'
-
 
 class Item(models.Model):
     class Meta:
diff --git a/smash/web/models/language.py b/smash/web/models/language.py
index 58219183..8e786111 100644
--- a/smash/web/models/language.py
+++ b/smash/web/models/language.py
@@ -1,8 +1,6 @@
 # coding=utf-8
 from django.db import models
 
-__author__ = 'Valentin Grouès'
-
 
 class Language(models.Model):
     class Meta:
diff --git a/smash/web/models/location.py b/smash/web/models/location.py
index a81f2af3..2ae25148 100644
--- a/smash/web/models/location.py
+++ b/smash/web/models/location.py
@@ -1,8 +1,6 @@
 # coding=utf-8
 from django.db import models
 
-__author__ = 'Valentin Grouès'
-
 
 class Location(models.Model):
     class Meta:
diff --git a/smash/web/models/room.py b/smash/web/models/room.py
index 1a02850b..2822b8df 100644
--- a/smash/web/models/room.py
+++ b/smash/web/models/room.py
@@ -1,8 +1,6 @@
 # coding=utf-8
 from django.db import models
 
-__author__ = 'Valentin Grouès'
-
 
 class Room(models.Model):
     equipment = models.ManyToManyField("web.Item",
diff --git a/smash/web/models/subject.py b/smash/web/models/subject.py
index 45e9082d..aa7d746c 100644
--- a/smash/web/models/subject.py
+++ b/smash/web/models/subject.py
@@ -4,8 +4,6 @@ from django.db import models
 from constants import BOOL_CHOICES, SEX_CHOICES, SUBJECT_TYPE_CHOICES
 from . import Appointment, Language, Location, Visit
 
-__author__ = 'Valentin Grouès'
-
 
 class Subject(models.Model):
     class Meta:
diff --git a/smash/web/models/visit.py b/smash/web/models/visit.py
index 313b960d..7554e398 100644
--- a/smash/web/models/visit.py
+++ b/smash/web/models/visit.py
@@ -5,8 +5,6 @@ from django.db import models
 
 from constants import BOOL_CHOICES, SUBJECT_TYPE_CHOICES_CONTROL
 
-__author__ = 'Valentin Grouès'
-
 
 class Visit(models.Model):
     class Meta:
diff --git a/smash/web/models/worker.py b/smash/web/models/worker.py
index d6bf3c1e..5e051e75 100644
--- a/smash/web/models/worker.py
+++ b/smash/web/models/worker.py
@@ -4,8 +4,6 @@ import datetime
 from django.contrib.auth.models import User
 from django.db import models
 
-__author__ = 'Valentin Grouès'
-
 
 class Worker(models.Model):
     class Meta:
diff --git a/smash/web/views/__init__.py b/smash/web/views/__init__.py
index 12bf76cd..1ae7ae1c 100644
--- a/smash/web/views/__init__.py
+++ b/smash/web/views/__init__.py
@@ -6,7 +6,6 @@ from django.shortcuts import redirect, render
 from notifications import get_notifications
 from ..models import Worker
 
-__author__ = 'Valentin Grouès'
 handler404 = 'web.views.e404_page_not_found'
 handler500 = 'web.views.e500_error'
 handler403 = 'web.views.e403_permission_denied'
diff --git a/smash/web/views/appointment.py b/smash/web/views/appointment.py
index 279f44fa..c13a0712 100644
--- a/smash/web/views/appointment.py
+++ b/smash/web/views/appointment.py
@@ -7,8 +7,6 @@ from . import wrap_response
 from ..forms import AppointmentDetailForm, AppointmentAddForm, AppointmentEditForm, SubjectEditForm
 from ..models import Appointment
 
-__author__ = 'Valentin Grouès'
-
 
 def appointments(request):
     approaching_list = Appointment.objects.filter(
@@ -85,7 +83,8 @@ def appointment_edit(request, id):
             if subject_form is not None:
                 subject_form.save()
             the_appointment = get_object_or_404(Appointment, id=id)
-            if (the_appointment.status != Appointment.APPOINTMENT_STATUS_SCHEDULED) and (the_appointment.visit is not None):
+            if (the_appointment.status != Appointment.APPOINTMENT_STATUS_SCHEDULED) and (
+                the_appointment.visit is not None):
                 return redirect('web.views.visit_details', id=the_appointment.visit.id)
             else:
                 return redirect('web.views.appointments')
@@ -99,4 +98,4 @@ def appointment_edit(request, id):
         'subject_form': subject_form,
         'id': id,
         'appointment': the_appointment
-    })
\ No newline at end of file
+    })
diff --git a/smash/web/views/auth.py b/smash/web/views/auth.py
index 9ff4730d..2e095773 100644
--- a/smash/web/views/auth.py
+++ b/smash/web/views/auth.py
@@ -3,8 +3,6 @@ from django.shortcuts import redirect, render
 
 from ..auth import do_login, do_logout
 
-__author__ = 'Valentin Grouès'
-
 
 def login(request):
     context = {
diff --git a/smash/web/views/doctor.py b/smash/web/views/doctor.py
index a59e3221..1aa0e538 100644
--- a/smash/web/views/doctor.py
+++ b/smash/web/views/doctor.py
@@ -5,8 +5,6 @@ from . import wrap_response
 from ..forms import WorkerAddForm, WorkerEditForm, WorkerDetailForm
 from ..models import Worker, Avaibility
 
-__author__ = 'Valentin Grouès'
-
 
 def doctors(request):
     doctors_list = Worker.objects.order_by('-last_name')
diff --git a/smash/web/views/equipment.py b/smash/web/views/equipment.py
index 417b1f7d..0a829907 100644
--- a/smash/web/views/equipment.py
+++ b/smash/web/views/equipment.py
@@ -2,8 +2,6 @@
 from . import wrap_response
 from ..models import Item
 
-__author__ = 'Valentin Grouès'
-
 
 def equipment_def(request):
     equipment_list = Item.objects.order_by('-name')
diff --git a/smash/web/views/export.py b/smash/web/views/export.py
index 8d5182b0..d76a0465 100644
--- a/smash/web/views/export.py
+++ b/smash/web/views/export.py
@@ -8,8 +8,6 @@ from notifications import get_today_midnight_date
 from . import e500_error, wrap_response
 from ..models import Subject, Appointment
 
-__author__ = 'Valentin Grouès'
-
 
 @login_required
 def export_to_csv2(request, type="subjects"):
diff --git a/smash/web/views/kit.py b/smash/web/views/kit.py
index 36d8e440..f4a7b9e2 100644
--- a/smash/web/views/kit.py
+++ b/smash/web/views/kit.py
@@ -8,8 +8,6 @@ from . import wrap_response
 from ..forms import KitRequestForm
 from ..models import AppointmentType, Appointment
 
-__author__ = 'Valentin Grouès'
-
 
 def get_kit_requests(user, start_date=None, end_date=None):
     if start_date is None:
diff --git a/smash/web/views/mails.py b/smash/web/views/mails.py
index e949129f..041daa09 100644
--- a/smash/web/views/mails.py
+++ b/smash/web/views/mails.py
@@ -1,8 +1,6 @@
 # coding=utf-8
 from . import wrap_response
 
-__author__ = 'Valentin Grouès'
-
 
 def mail_templates(request):
     return wrap_response(request, "mail_templates/index.html", {})
diff --git a/smash/web/views/notifications.py b/smash/web/views/notifications.py
index 4cebc320..ce900ae8 100644
--- a/smash/web/views/notifications.py
+++ b/smash/web/views/notifications.py
@@ -6,8 +6,6 @@ from django.db.models import Count, Case, When
 
 from ..models import Worker, Subject, Visit, Appointment, Location
 
-__author__ = 'Valentin Grouès'
-
 
 class NotificationCount(object):
     title = ""
diff --git a/smash/web/views/statistics.py b/smash/web/views/statistics.py
index 486427f5..67bdb79c 100644
--- a/smash/web/views/statistics.py
+++ b/smash/web/views/statistics.py
@@ -3,8 +3,6 @@ from . import wrap_response
 from ..forms import StatisticsForm
 from ..statistics import StatisticsManager, get_previous_year_and_month
 
-__author__ = 'Valentin Grouès'
-
 
 def statistics(request):
     statistics_manager = StatisticsManager()
diff --git a/smash/web/views/subject.py b/smash/web/views/subject.py
index a3556a99..cfeddecd 100644
--- a/smash/web/views/subject.py
+++ b/smash/web/views/subject.py
@@ -7,8 +7,6 @@ from . import wrap_response
 from ..forms import SubjectAddForm, SubjectEditForm, VisitDetailForm
 from ..models import Subject
 
-__author__ = 'Valentin Grouès'
-
 
 def subjects(request):
     subjects_list = Subject.objects.order_by('-last_name')
@@ -57,7 +55,8 @@ def subject_edit(request, id):
     was_dead = the_subject.dead
     was_resigned = the_subject.resigned
     if request.method == 'POST':
-        form = SubjectEditForm(request.POST, request.FILES, instance=the_subject, was_dead=was_dead, was_resigned=was_resigned)
+        form = SubjectEditForm(request.POST, request.FILES, instance=the_subject, was_dead=was_dead,
+                               was_resigned=was_resigned)
         if form.is_valid():
             form.save()
             # check if subject was marked as dead or resigned
diff --git a/smash/web/views/visit.py b/smash/web/views/visit.py
index dfce9763..4d2319cd 100644
--- a/smash/web/views/visit.py
+++ b/smash/web/views/visit.py
@@ -8,8 +8,6 @@ from . import wrap_response
 from ..forms import VisitDetailForm, SubjectDetailForm, VisitAddForm
 from ..models import Visit, Appointment, Subject
 
-__author__ = 'Valentin Grouès'
-
 
 def visits(request):
     visit_list = Visit.objects.order_by('-datetime_begin')
-- 
GitLab