Skip to content
Snippets Groups Projects
Commit 482b2e67 authored by Valentin Groues's avatar Valentin Groues :eyes:
Browse files

remove author name automatically added by IDE

parent f6d9b717
No related branches found
No related tags found
No related merge requests found
Pipeline #
Showing
with 3 additions and 40 deletions
......@@ -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
......
......@@ -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:
......
......@@ -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:
......
# coding=utf-8
from django.db import models
__author__ = 'Valentin Grouès'
class Avaibility(models.Model):
class Meta:
......
# coding=utf-8
__author__ = 'Valentin Grouès'
BOOL_CHOICES = ((True, 'Yes'), (False, 'No'))
SEX_CHOICES_MALE = 'M'
SEX_CHOICES_FEMALE = 'F'
......
# coding=utf-8
from django.db import models
__author__ = 'Valentin Grouès'
class FlyingTeam(models.Model):
class Meta:
......
# coding=utf-8
from django.db import models
__author__ = 'Valentin Grouès'
class Holiday(models.Model):
class Meta:
......
# coding=utf-8
from django.db import models
__author__ = 'Valentin Grouès'
class Item(models.Model):
class Meta:
......
# coding=utf-8
from django.db import models
__author__ = 'Valentin Grouès'
class Language(models.Model):
class Meta:
......
# coding=utf-8
from django.db import models
__author__ = 'Valentin Grouès'
class Location(models.Model):
class Meta:
......
# coding=utf-8
from django.db import models
__author__ = 'Valentin Grouès'
class Room(models.Model):
equipment = models.ManyToManyField("web.Item",
......
......@@ -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:
......
......@@ -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:
......
......@@ -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:
......
......@@ -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'
......
......@@ -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
})
......@@ -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 = {
......
......@@ -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')
......
......@@ -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')
......
......@@ -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"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment