- {% for field, data in line.2.iteritems %}
+ {% for field, data in line.2.items %}
- {{field}}: {{data.0}} {{data.1}}
{% endfor %}
diff --git a/truffe2/accounting_main/tests.py b/truffe2/accounting_main/tests.py
index 7ce503c2..4809f18d 100644
--- a/truffe2/accounting_main/tests.py
+++ b/truffe2/accounting_main/tests.py
@@ -1,3 +1,291 @@
-from django.test import TestCase
+# -*- coding: utf-8 -*-
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
-# Create your tests here.
+Replace this with more appropriate tests for your application.
+"""
+
+from re import match
+
+from django.core.files.uploadedfile import SimpleUploadedFile
+from django.utils import timezone
+
+from main.test_tools import TruffeTestAbstract
+
+
+class AccountingMainNoLoginTest(TruffeTestAbstract):
+
+ def test_accounting_graph(self):
+ self.call_check_redirect('/accounting/main/accounting/graph/')
+
+ def test_accounting_errors_send_message(self):
+ self.call_check_redirect('/accounting/main/accounting/errors/send_message/1')
+
+ def test_accounting_import_step0(self):
+ # TODO : no '@login_required' for this view
+ self.call('/accounting/main/accounting/import/step/0', status_expected=404)
+
+ def test_accounting_import_step1(self):
+ self.call_check_redirect('/accounting/main/accounting/import/step/1/1')
+
+ def test_accounting_import_step2(self):
+ self.call_check_redirect('/accounting/main/accounting/import/step/2/1')
+
+ def test_budget_available_list(self):
+ self.call_check_redirect('/accounting/main/budget/available_list'),
+
+ def test_budget_copy(self): self.call_check_redirect('/accounting/main/budget/1/copy')
+
+ def test_budget_get_infos(self):
+ self.call_check_redirect('/accounting/main/budget/1/get_infos')
+
+ def test_budget_pdf(self):
+ self.call_check_redirect('/accounting/main/budget/1/pdf/'),
+
+ def test_accounting_budget_view(self):
+ self.call_check_redirect('/accounting/main/accounting/budget_view'),
+
+ def test_budget_list(self):
+ self.call_check_redirect('/accounting/main/budget/')
+
+ def test_budget_mayi(self):
+ self.call_check_redirect('/accounting/main/budget/mayi')
+
+ def test_budget_json(self):
+ self.call_check_redirect('/accounting/main/budget/json')
+
+ def test_budget_deleted(self):
+ self.call_check_redirect('/accounting/main/budget/deleted')
+
+ def test_budget_logs(self):
+ self.call_check_redirect('/accounting/main/budget/logs')
+
+ def test_budget_logs_json(self):
+ self.call_check_redirect('/accounting/main/budget/logs/json')
+
+ def test_budget_add(self):
+ self.call_check_redirect('/accounting/main/budget/~/edit')
+
+ def test_budget_edit(self):
+ self.call_check_redirect('/accounting/main/budget/1/edit')
+
+ def test_budget_delete(self):
+ self.call_check_redirect('/accounting/main/budget/1/delete')
+
+ def test_budget_show(self):
+ self.call_check_redirect('/accounting/main/budget/1/')
+
+ def test_budget_switch_status(self):
+ self.call_check_redirect('/accounting/main/budget/1/switch_status')
+
+ def test_budget_contact(self):
+ self.call_check_redirect('/accounting/main/budget/1/contact/canedit')
+
+ def test_accountingline_list(self):
+ self.call_check_redirect('/accounting/main/accountingline/')
+
+ def test_accountingline_mayi(self):
+ self.call_check_redirect('/accounting/main/accountingline/mayi')
+
+ def test_accountingline_json(self):
+ self.call_check_redirect('/accounting/main/accountingline/json')
+
+ def test_accountingline_deleted(self):
+ self.call_check_redirect('/accounting/main/accountingline/deleted')
+
+ def test_accountingline_logs(self):
+ self.call_check_redirect('/accounting/main/accountingline/logs')
+
+ def test_accountingline_logs_json(self):
+ self.call_check_redirect('/accounting/main/accountingline/logs/json')
+
+ def test_accountingline_edit(self):
+ self.call_check_redirect('/accounting/main/accountingline/2/edit')
+
+ def test_accountingline_delete(self):
+ self.call_check_redirect('/accounting/main/accountingline/2/delete')
+
+ def test_accountingline_show(self):
+ self.call_check_redirect('/accounting/main/accountingline/2/')
+
+ def test_accountingline_switch_status(self):
+ self.call_check_redirect('/accounting/main/accountingline/2/switch_status')
+
+ def test_accountingline_contact(self):
+ self.call_check_redirect('/accounting/main/accountingline/2/contact/editor')
+
+
+class AccountingMainWithLoginTest(TruffeTestAbstract):
+
+ login_username = 'admin'
+
+ def test_accounting_graph(self):
+ self.call_check_text('/accounting/main/accounting/graph/', data={'costcenter':1})
+
+ def test_accounting_errors_send_message(self):
+ self.call_check_text('/accounting/main/accounting/errors/send_message/1', method='post', data={'message':'abc 123'})
+
+ def test_accounting_import_step0(self):
+ self.call('/accounting/main/accounting/import/step/0', status_expected=302)
+ url_splited = self.response.url.split('/')
+ self.assertEqual('/'.join(url_splited[:-1]), '/accounting/main/accounting/import/step/1', self.response.url)
+ self.assertTrue(match(r'[a-z0-9\-]+', url_splited[-1]), self.response.url)
+
+ def test_accounting_import_step1(self):
+ now = timezone.now()
+ content_csv = """Extrait CdC
+Extrait de: 01.01.YYYY bis 31.12.YYYY
+Tous CdC
+
+CdC
+Date\tPi\xe8ce\tTexte d'\xe9criture\tType C.\tD\xe9bit CHF\tCr\xe9dit CHF\tCourant
+Solde CHF\t
+1234 center\t\t\t\t\t\t\t
+01.08.YYYY\t376\tSolde au 01.08.YYYY\t2850\t\t238'950.81\t238'950.81\t-
+22.08.YYYY\t10\tFacture CH-0078-YYYY-1, ass. accidents pour les staffs - 21291 Assurances SA\t6340\t1'243.40\t\t237'707.41\t-
+22.08.YYYY\t11\tFacture abo annuel du 01.08.YYYY au 31.07.2020 - 20393 Sage suisse SA\t6550\t1'387.60\t\t236'319.81\t-
+22.08.YYYY\t12\tFacture n°1000666369, inscription au RC - 20276 Etat de Vaud , Ordre judiciaire \t6560\t820.00\t\t235'499.81\t-
+22.08.YYYY\t12\tFacture n°1000666369, inscription au RC - 20276 Etat de Vaud , Ordre judiciaire \t6560\t27.86\t\t235'471.95\t-
+22.08.YYYY\t16\tFacture n°791961028, location photocopieuse 08.YYYY - 20023 Canon (Schweiz) AG \t6410\t230.00\t\t235'241.95\t-
+22.08.YYYY\t17\tFacture n°401237743 , location 08.YYYY- 20023 Canon (Schweiz) AG \t6410\t80.00\t\t235'161.95\t-
+23.08.YYYY\t425\tPmt salaire 08.YYYY, Z. CUFU\t2229\t2'287.30\t\t232'874.65\t-
+23.08.YYYY\t426\tPmt salaire 08.YYYY, O. QUGIBI\t2229\t3'521.40\t\t229'353.25\t-
+23.08.YYYY\t427\tPmt salaire 08.YYYY, M. VATU\t2229\t5'406.60\t\t223'946.65\t-
+30.08.YYYY\t437\tFrais trafic des paiements au 31.08.YYYY\t6710\t25.10\t\t223'921.55\t-
+"""
+ file_to_upload = SimpleUploadedFile("accounting.csv", content_csv.replace('YYYY', str(now.year)).encode(), content_type="text/plain")
+ sess = self.session
+ sess.update({'T2_ACCOUNTING_IMPORT_def-123-abc': {'is_valid': True, 'has_data': False}})
+ sess.save()
+ self.call_check_html('/accounting/main/accounting/import/step/1/def-123-abc')
+ self.call_check_html('/accounting/main/accounting/import/step/1/def-123-abc?send=notif', method='post', warning_expected="Notification envoyée !")
+ self.call_check_redirect('/accounting/main/accounting/import/step/1/def-123-abc', data={'year':1, 'file':file_to_upload, 'type':'tab_2016'},
+ method='post', redirect_url='/accounting/main/accounting/import/step/2/def-123-abc')
+
+ def test_accounting_import_step2(self):
+ sess = self.session
+ sess.update({'T2_ACCOUNTING_IMPORT_def-123-abc': {'is_valid': True, 'has_data': True, 'year':1,
+ 'data': {'nop':[],
+ 'to_delete':[],
+ 'to_update':[],
+ 'to_add': [{'current_sum':-238950.81, 'account': u'2850', 'input': '238950.81', 'costcenter': u'1234', 'output': '0.0', 'date': '2020-08-01', 'text': u'Solde au 01.08.2020', 'tva': '0.0', 'order': 0, 'document_id': u'376'},
+ {'current_sum':-237707.41, 'account': u'6340', 'input': '0.0', 'costcenter': u'1234', 'output': '1243.4', 'date': '2020-08-22', 'text': u'Facture CH-0078-2020-1, ass. accidents pour les staffs - 21291 Assurances SA', 'tva': '0.0', 'order': 1, 'document_id': u'10'},
+ {'current_sum':-236319.81, 'account': u'6550', 'input': '0.0', 'costcenter': u'1234', 'output': '1387.6', 'date': '2020-08-22', 'text': u'Facture abo annuel du 01.08.2020 au 31.07.2020 - 20393 Sage suisse SA', 'tva': '0.0', 'order': 2, 'document_id': u'11'}]
+ }}})
+ sess.save()
+ self.call_check_html('/accounting/main/accounting/import/step/2/def-123-abc')
+ self.call_check_redirect('/accounting/main/accounting/import/step/2/def-123-abc',
+ method='post', redirect_url='/accounting/main/accounting/import/step/0', target_status_code=302)
+
+ def test_budget_available_list(self):
+ self.call_check_json('/accounting/main/budget/available_list', data={'upk':1, 'ypk':1}),
+
+ def test_budget_copy(self):
+ self.call_check_redirect('/accounting/main/budget/1/copy', redirect_url='/accounting/main/budget/2/edit')
+
+ def test_budget_get_infos(self):
+ self.call_check_json('/accounting/main/budget/1/get_infos')
+
+ def test_budget_pdf(self):
+ self.call_check_pdf('/accounting/main/budget/1/pdf/')
+
+ def test_accounting_budget_view(self):
+ self.call_check_text('/accounting/main/accounting/budget_view', data={'costcenter':1})
+
+ self.call_check_text('/accounting/main/accounting/budget_view?costcenter=1', data={}, method='post')
+
+ def test_budget_list(self):
+ self.call_check_html('/accounting/main/budget/')
+
+ def test_budget_mayi(self):
+ self.call_check_json('/accounting/main/budget/mayi')
+
+ def test_budget_json(self):
+ self.call_check_json('/accounting/main/budget/json')
+
+ def test_budget_deleted(self):
+ from accounting_main.models import Budget
+ Budget(id=2, name='bad budget', unit_id=1, accounting_year_id=1, costcenter_id=1, deleted=True).save()
+ self.call_check_html('/accounting/main/budget/deleted', data={'upk':1})
+ self.call_check_redirect('/accounting/main/budget/deleted', method='post', data={'upk':1, 'pk':2}, redirect_url='/accounting/main/budget/')
+
+ def test_budget_logs(self):
+ self.call_check_html('/accounting/main/budget/logs')
+
+ def test_budget_logs_json(self):
+ self.call_check_json('/accounting/main/budget/logs/json')
+
+ def test_budget_add(self):
+ self.call_check_html('/accounting/main/budget/~/edit', data={'upk':1, 'ypk':1})
+ self.call_check_redirect('/accounting/main/budget/~/edit', method='post',
+ data={'upk':1, 'ypk':1, 'tags':'', 'name':'my budget', 'costcenter':1}, redirect_url='/accounting/main/budget/2/')
+
+ def test_budget_edit(self):
+ self.call_check_html('/accounting/main/budget/1/edit')
+ self.call_check_redirect('/accounting/main/budget/1/edit', method='post',
+ data={'tags':'', 'name':'new budget', 'costcenter':1}, redirect_url='/accounting/main/budget/1/')
+
+ def test_budget_delete(self):
+ self.call_check_html('/accounting/main/budget/1/delete')
+
+ def test_budget_show(self):
+ self.call_check_html('/accounting/main/budget/1/')
+
+ def test_budget_switch_status(self):
+ self.call_check_text('/accounting/main/budget/1/switch_status', data={'dest_status':'2_treated', 'from_list':'from_list'})
+ self.call_check_text('/accounting/main/budget/1/switch_status?dest_status=2_treated&from_list=from_list', method='post', data={'do':'it'})
+ self.assertIn('window.location.reload();', self.response.content.decode('utf-8'))
+
+ def test_budget_contact(self):
+ self.call_check_text('/accounting/main/budget/1/contact/agep_compta')
+ self.call_check_text('/accounting/main/budget/1/contact/agep_compta', method='post', data={'key':'agep_compta', 'subject':'ask', 'message':'blabla', 'receive_copy':True})
+
+ def test_accountingline_list(self):
+ self.call_check_html('/accounting/main/accountingline/', data={'iSortingCols':2, 'iSortCol_0':1, 'iSortCol_1':3, 'iDisplayLength':5, 'iDisplayStart':0, 'sSearch': 'account'})
+
+ def test_accountingline_mayi(self):
+ self.call_check_json('/accounting/main/accountingline/mayi')
+
+ def test_accountingline_json(self):
+ self.call_check_json('/accounting/main/accountingline/json')
+
+ def test_accountingline_deleted(self):
+ from accounting_main.models import AccountingLine
+ now = timezone.now()
+ AccountingLine(id=20, account_id=1, date=now, tva=0.0, text='line bad', output=11.11, input=0.0, current_sum=0.0, order=1, accounting_year_id=1, costcenter_id=1, deleted=True).save()
+ self.call_check_html('/accounting/main/accountingline/deleted', data={'upk':1})
+ self.call_check_redirect('/accounting/main/accountingline/deleted', method='post', data={'upk':1, 'pk':20}, redirect_url='/accounting/main/accountingline/')
+
+ def test_accountingline_logs(self):
+ self.call_check_html('/accounting/main/accountingline/logs')
+
+ def test_accountingline_logs_json(self):
+ self.call_check_json('/accounting/main/accountingline/logs/json')
+
+ def test_accountingline_add(self):
+ self.call_check_html('/accounting/main/accountingline/~/edit', data={'upk':1, 'ypk':1})
+ self.call_check_redirect('/accounting/main/accountingline/~/edit', method='post',
+ data={'upk':1, 'ypk':1, 'date':'2020-01-01', 'tva':0.0, 'text':'aaa', 'output':1.23, 'input':2.34, 'current_sum':4.56, 'order':2, 'costcenter':1, 'account':4},
+ redirect_url='/accounting/main/accountingline/10/')
+
+ def test_accountingline_edit(self):
+ self.call_check_html('/accounting/main/accountingline/2/edit')
+ self.call_check_redirect('/accounting/main/accountingline/2/edit', method='post',
+ data={'date':'2020-01-01', 'tva':0.0, 'text':'aaa', 'output':1.23, 'input':2.34, 'current_sum':4.56, 'order':2, 'costcenter':1, 'account':4},
+ redirect_url='/accounting/main/accountingline/2/')
+
+ def test_accountingline_delete(self):
+ self.call_check_html('/accounting/main/accountingline/2/delete')
+
+ def test_accountingline_show(self):
+ self.call_check_html('/accounting/main/accountingline/2/')
+
+ def test_accountingline_switch_status(self):
+ self.call_check_text('/accounting/main/accountingline/2/switch_status', data={'dest_status':'1_validated', 'from_list':'from_list'})
+ self.call_check_text('/accounting/main/accountingline/2/switch_status?dest_status=1_validated&from_list=from_list', method='post', data={'do':'it'})
+ self.assertIn('window.location.reload();', self.response.content.decode('utf-8'))
+
+ def test_accountingline_contact(self):
+ self.call_check_text('/accounting/main/accountingline/2/contact/editor')
+ self.call_check_text('/accounting/main/accountingline/2/contact/editor', method='post', data={'key':'editor', 'subject':'ask', 'message':'blabla', 'receive_copy':True})
diff --git a/truffe2/accounting_main/urls.py b/truffe2/accounting_main/urls.py
index 49f5a328..218e1a58 100644
--- a/truffe2/accounting_main/urls.py
+++ b/truffe2/accounting_main/urls.py
@@ -1,22 +1,23 @@
# -*- coding: utf-8 -*-
-from django.conf.urls import patterns, url
+from django.urls import re_path
+from accounting_main.views import accounting_budget_view, budget_pdf, \
+ budget_getinfos, copy_budget, budget_available_list, accounting_import_step2, \
+ accounting_import_step1, accounting_import_step0, errors_send_message, \
+ accounting_graph
+urlpatterns = [
+ re_path(r'^accounting/graph/$', accounting_graph, name='accounting_main-views-accounting_graph'),
+ re_path(r'^accounting/errors/send_message/(?P[0-9]+)$', errors_send_message, name='accounting_main-views-errors_send_message'),
-urlpatterns = patterns(
- 'accounting_main.views',
+ re_path(r'^accounting/import/step/0$', accounting_import_step0, name='accounting_main-views-accounting_import_step0'),
+ re_path(r'^accounting/import/step/1/(?P[0-9\-a-f]+)$', accounting_import_step1, name='accounting_main-views-accounting_import_step1'),
+ re_path(r'^accounting/import/step/2/(?P[0-9\-a-f]+)$', accounting_import_step2, name='accounting_main-views-accounting_import_step2'),
- url(r'^accounting/graph/$', 'accounting_graph'),
- url(r'^accounting/errors/send_message/(?P[0-9]+)$', 'errors_send_message'),
+ re_path(r'^budget/available_list', budget_available_list, name='accounting_main-views-budget_available_list'),
+ re_path(r'^budget/(?P[0-9]+)/copy$', copy_budget, name='accounting_main-views-copy_budget'),
+ re_path(r'^budget/(?P[0-9]+)/get_infos$', budget_getinfos, name='accounting_main-views-budget_getinfos'),
+ re_path(r'^budget/(?P[0-9]+)/pdf/', budget_pdf, name='accounting_main-views-budget_pdf'),
- url(r'^accounting/import/step/0$', 'accounting_import_step0'),
- url(r'^accounting/import/step/1/(?P[0-9\-a-f]+)$', 'accounting_import_step1'),
- url(r'^accounting/import/step/2/(?P[0-9\-a-f]+)$', 'accounting_import_step2'),
-
- url(r'^budget/available_list', 'budget_available_list'),
- url(r'^budget/(?P[0-9]+)/copy$', 'copy_budget'),
- url(r'^budget/(?P[0-9]+)/get_infos$', 'budget_getinfos'),
- url(r'^budget/(?P[0-9]+)/pdf/', 'budget_pdf'),
-
- url(r'^accounting/budget_view', 'accounting_budget_view'),
-)
+ re_path(r'^accounting/budget_view', accounting_budget_view, name='accounting_main-views-accounting_budget_view'),
+]
diff --git a/truffe2/accounting_main/views.py b/truffe2/accounting_main/views.py
index 3c6b43f9..ad3dd71c 100644
--- a/truffe2/accounting_main/views.py
+++ b/truffe2/accounting_main/views.py
@@ -3,17 +3,15 @@
from django.shortcuts import get_object_or_404, render, redirect
from django.http import Http404, HttpResponse
from django.contrib.auth.decorators import login_required
-from django.core.urlresolvers import reverse
+from django.urls import reverse
from django.contrib import messages
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
from django.utils.timezone import now
from django.db.models import Sum
-
from app.utils import generate_pdf
from notifications.utils import notify_people
-
import uuid
import json
import time
@@ -82,9 +80,9 @@ def copy_budget(request, pk):
messages.success(request, _(u'Copie terminée avec succès'))
if len(budgets) == 1:
- return redirect('accounting_main.views.budget_edit', budgets[0].pk)
+ return redirect('accounting_main-views-budget_edit', budgets[0].pk)
else:
- return redirect('accounting_main.views.budget_list')
+ return redirect('accounting_main-views-budget_list')
@login_required
@@ -116,7 +114,7 @@ def budget_pdf(request, pk):
'description': line.description, 'amount': abs(float(line.amount))}, list(budget.budgetline_set.all()))
accounts = sorted(list(set(map(lambda line: line['account'], lines))), key=lambda acc: acc.account_number)
retour = [[[line for line in lines if line['account'] == acc and line['table_id'] == tab] for acc in accounts] for tab in ['incomes', 'outcomes']]
- retour = map(lambda kind: map(lambda block: {'account': block[0]['account'], 'total': sum(map(lambda elem: elem['amount'], block)), 'entries': block} if block else {}, kind), retour)
+ retour = [[{'account': block[0]['account'], 'total': sum(map(lambda elem: elem['amount'], block)), 'entries': block} if block else {} for block in kind] for kind in retour]
return generate_pdf("accounting_main/budget/pdf.html", request, {'object': budget, 'incomes': retour[0], 'outcomes': retour[1]})
@@ -134,7 +132,7 @@ def accounting_import_step0(request):
request.session[session_key] = {'is_valid': True, 'has_data': False}
- return redirect('accounting_main.views.accounting_import_step1', key)
+ return redirect('accounting_main-views-accounting_import_step1', key)
def _get_import_session_data(request, key):
@@ -150,7 +148,7 @@ def _get_import_session_data(request, key):
if not session_data or not session_data['is_valid']:
messages.warning(request, _(u'Session d\'importation invalide.'))
- return (None, redirect('accounting_main.views.accounting_import_step0'))
+ return (None, redirect('accounting_main-views-accounting_import_step0'))
return (session_key, session_data)
@@ -161,19 +159,19 @@ def unicode_csv_reader(unicode_csv_data, *args, **kwargs):
import csv
- # csv.py doesn't do Unicode; encode temporarily as UTF-8:
+ # csv.py doesn't do str; encode temporarily as UTF-8:
csv_reader = csv.reader(unicode_csv_data, *args, **kwargs)
for row in csv_reader:
- # decode UTF-8 back to Unicode, cell by cell:
- yield [unicode(cell, 'cp1252') for cell in row]
+ # decode UTF-8 back to str, cell by cell:
+ yield [cell for cell in row]
try:
- with open(file, 'rb') as csvfile:
+ with open(file, 'r') as csvfile:
csvreader = unicode_csv_reader(csvfile, 'excel-tab')
- if csvreader.next()[0] != 'Extrait CdC':
- messages.warning(request, "L'header initial ne correspond pas ({} vs {})".format(csvreader.next()[0], 'Extrait CdC'))
+ if csvreader.__next__()[0] != 'Extrait CdC':
+ messages.warning(request, "L'header initial ne correspond pas ({} vs {})".format(csvreader.__next__()[0], 'Extrait CdC'))
return False
current_costcenter = None
@@ -181,7 +179,7 @@ def unicode_csv_reader(unicode_csv_data, *args, **kwargs):
phase_solde = False
phase_compte = False
- current_line = csvreader.next()
+ current_line = csvreader.__next__()
wanted_lines = []
@@ -284,7 +282,7 @@ def unicode_csv_reader(unicode_csv_data, *args, **kwargs):
pass
try:
- current_line = csvreader.next()
+ current_line = csvreader.__next__()
except StopIteration:
return wanted_lines
@@ -351,7 +349,7 @@ def _diff_generator(request, year, data):
else:
to_add.append(wanted_line)
- to_delete = map(lambda line: line.pk, AccountingLine.objects.filter(accounting_year=year).exclude(pk__in=valids_ids))
+ to_delete = [line.pk for line in AccountingLine.objects.filter(accounting_year=year).exclude(pk__in=valids_ids)]
return {'to_add': to_add, 'to_update': to_update, 'nop': nop, 'to_delete': to_delete}
@@ -365,7 +363,7 @@ def accounting_import_step1(request, key):
return session_data # Not very clean ^^'
if session_data['has_data']:
- return redirect('accounting_main.views.accounting_import_step2', key)
+ return redirect('accounting_main-views-accounting_import_step2', key)
from accounting_main.forms2 import ImportForm
@@ -382,7 +380,7 @@ def accounting_import_step1(request, key):
if user not in people:
people.append(user)
- notify_people(request, 'Accounting.NewCompta', 'accounting_new_compta', request.user, people, {'notification_force_url': reverse('accounting_main.views.accountingline_list')})
+ notify_people(request, 'Accounting.NewCompta', 'accounting_new_compta', request.user, people, {'notification_force_url': reverse('accounting_main-views-accountingline_list')})
messages.success(request, "Notification envoyée !")
form = ImportForm()
@@ -414,7 +412,7 @@ def accounting_import_step1(request, key):
session_data['has_data'] = True
request.session[session_key] = session_data
- return redirect('accounting_main.views.accounting_import_step2', key)
+ return redirect('accounting_main-views-accounting_import_step2', key)
else:
form = ImportForm()
@@ -434,7 +432,7 @@ def accounting_import_step2(request, key):
return session_data # Not very clean ^^'
if not session_data['has_data']:
- return redirect('accounting_main.views.accounting_import_step1', key)
+ return redirect('accounting_main-views-accounting_import_step1', key)
year = get_object_or_404(AccountingYear, pk=session_data['year'])
@@ -445,9 +443,9 @@ def accounting_import_step2(request, key):
diff = session_data['data']
- diff['nop'] = map(lambda line_pk: line_cache[line_pk], diff['nop'])
- diff['to_delete'] = map(lambda line_pk: line_cache[line_pk], diff['to_delete'])
- diff['to_update'] = map(lambda (line_pk, __, ___): (line_cache[line_pk], __, ___), diff['to_update'])
+ diff['nop'] = [line_cache[line_pk] for line_pk in diff['nop']]
+ diff['to_delete'] = [line_cache[line_pk] for line_pk in diff['to_delete']]
+ diff['to_update'] = [(line_cache[line_pk], arg1, arg2) for line_pk, arg1, arg2 in diff['to_update']]
if request.method == 'POST':
@@ -463,7 +461,7 @@ def accounting_import_step2(request, key):
for line, wanted_line, diffs in diff['to_update']:
- for field, (old, new) in diffs.iteritems():
+ for field, (old, new) in diffs.items():
setattr(line, field, new)
line.save()
@@ -480,7 +478,7 @@ def accounting_import_step2(request, key):
request.session[session_key] = {}
messages.success(request, _(u"Compta importée ! Si tout est ok, n'oublie pas de notifier les gens."))
- return redirect('accounting_main.views.accounting_import_step0')
+ return redirect('accounting_main-views-accounting_import_step0')
return render(request, "accounting_main/import/step2.html", {'key': key, 'diff': diff})
@@ -496,15 +494,15 @@ def budget_available_list(request):
if request.GET.get('upk'):
unit = get_object_or_404(Unit, pk=request.GET.get('upk'))
- unit_and_sub_pks = [unit.pk] + map(lambda un: un.pk, unit.sub_eqi() + unit.sub_grp())
+ unit_and_sub_pks = [unit.pk] + [un.pk for un in unit.sub_eqi() + unit.sub_grp()]
budgets = budgets.filter(unit__pk__in=unit_and_sub_pks)
if request.GET.get('ypk'):
accounting_year = get_object_or_404(AccountingYear, pk=request.GET.get('ypk'))
budgets = budgets.filter(accounting_year=accounting_year)
- budgets = filter(lambda bud: bud.rights_can('SHOW', request.user), list(budgets))
- retour = {'data': [{'pk': budget.pk, 'name': budget.__unicode__()} for budget in budgets]}
+ budgets = [bud for bud in list(budgets) if bud.rights_can('SHOW', request.user)]
+ retour = {'data': [{'pk': budget.pk, 'name': budget.__str__()} for budget in budgets]}
return HttpResponse(json.dumps(retour), content_type='application/json')
diff --git a/truffe2/accounting_tools/forms.py b/truffe2/accounting_tools/forms.py
index edf1b0df..db751990 100644
--- a/truffe2/accounting_tools/forms.py
+++ b/truffe2/accounting_tools/forms.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from django.forms import ModelForm, DateInput
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
from accounting_tools.models import InvoiceLine, SubventionLine
diff --git a/truffe2/accounting_tools/migrations/0001_initial.py b/truffe2/accounting_tools/migrations/0001_initial.py
index bc04c95a..d210f7b5 100644
--- a/truffe2/accounting_tools/migrations/0001_initial.py
+++ b/truffe2/accounting_tools/migrations/0001_initial.py
@@ -1,170 +1,667 @@
# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
+from __future__ import unicode_literals
+from django.db import models, migrations
+import accounting_core.models
+import generic.models
+import generic.search
+import rights.utils
+import accounting_core.utils
+from django.conf import settings
-class Migration(SchemaMigration):
- def forwards(self, orm):
- # Adding model 'SubventionLine'
- db.create_table(u'accounting_tools_subventionline', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('start_date', self.gf('django.db.models.fields.DateField')()),
- ('end_date', self.gf('django.db.models.fields.DateField')()),
- ('place', self.gf('django.db.models.fields.CharField')(max_length=100)),
- ('nb_spec', self.gf('django.db.models.fields.SmallIntegerField')()),
- ))
- db.send_create_signal(u'accounting_tools', ['SubventionLine'])
+class Migration(migrations.Migration):
- # Adding model 'Subvention'
- db.create_table(u'accounting_tools_subvention', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('amount_asked', self.gf('django.db.models.fields.SmallIntegerField')()),
- ('amount_given', self.gf('django.db.models.fields.SmallIntegerField')()),
- ('mobility_asked', self.gf('django.db.models.fields.SmallIntegerField')(blank=True)),
- ('mobility_given', self.gf('django.db.models.fields.SmallIntegerField')(blank=True)),
- ('description', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
- ('comment_root', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
- ('kind', self.gf('django.db.models.fields.CharField')(max_length=15, blank=True)),
- ('status', self.gf('django.db.models.fields.CharField')(default='0_draft', max_length=255)),
- ('accounting_year', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_core.AccountingYear'])),
- ('unit', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['units.Unit'])),
- ))
- db.send_create_signal(u'accounting_tools', ['Subvention'])
+ dependencies = [
+ ('accounting_main', '0001_initial'),
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('contenttypes', '0001_initial'),
+ ('units', '__first__'),
+ ('accounting_core', '0001_initial'),
+ ]
- # Adding unique constraint on 'Subvention', fields ['unit', 'accounting_year']
- db.create_unique(u'accounting_tools_subvention', ['unit_id', 'accounting_year_id'])
-
- # Adding model 'SubventionLogging'
- db.create_table(u'accounting_tools_subventionlogging', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('extra_data', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('what', self.gf('django.db.models.fields.CharField')(max_length=64)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='logs', to=orm['accounting_tools.Subvention'])),
- ))
- db.send_create_signal(u'accounting_tools', ['SubventionLogging'])
-
-
- def backwards(self, orm):
- # Removing unique constraint on 'Subvention', fields ['unit', 'accounting_year']
- db.delete_unique(u'accounting_tools_subvention', ['unit_id', 'accounting_year_id'])
-
- # Deleting model 'SubventionLine'
- db.delete_table(u'accounting_tools_subventionline')
-
- # Deleting model 'Subvention'
- db.delete_table(u'accounting_tools_subvention')
-
- # Deleting model 'SubventionLogging'
- db.delete_table(u'accounting_tools_subventionlogging')
-
-
- models = {
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
+ operations = [
+ migrations.CreateModel(
+ name='CashBook',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('deleted', models.BooleanField(default=False)),
+ ('name', models.CharField(max_length=255, verbose_name='Titre du journal de caisse')),
+ ('nb_proofs', models.PositiveIntegerField(default=0, verbose_name='Nombre de justificatifs')),
+ ('comment', models.TextField(null=True, verbose_name='Commentaire', blank=True)),
+ ('object_id', models.PositiveIntegerField(null=True, blank=True)),
+ ('status', models.CharField(default=b'0_draft', max_length=255, choices=[(b'6_canceled', 'Annul\xe9'), (b'3_agep_sig2', 'Attente signature CdD 2'), (b'6_archived', 'Archiv\xe9'), (b'3_agep_sig1', 'Attente signature CdD 1'), (b'2_agep_validable', 'Attente v\xe9rification secr\xe9tariat'), (b'0_correct', 'Corrections n\xe9cessaires'), (b'0_draft', 'Brouillon'), (b'5_in_accounting', 'En comptabilisation'), (b'1_unit_validable', 'Attente accord unit\xe9'), (b'4_accountable', 'A comptabiliser')])),
+ ('accounting_year', models.ForeignKey(verbose_name='Ann\xe9e comptable', to='accounting_core.AccountingYear', on_delete=models.deletion.PROTECT)),
+ ('content_type', models.ForeignKey(blank=True, to='contenttypes.ContentType', null=True, on_delete=models.deletion.SET_NULL)),
+ ('costcenter', models.ForeignKey(verbose_name='Centre de co\xfbt', to='accounting_core.CostCenter', on_delete=models.deletion.PROTECT)),
+ ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model, generic.models.GenericTaggableObject, generic.models.GenericAccountingStateModel, generic.models.GenericStateModel, generic.models.GenericModelWithFiles, generic.models.GenericModelWithLines, accounting_core.utils.AccountingYearLinked, accounting_core.utils.CostCenterLinked, rights.utils.UnitEditableModel, generic.models.GenericGroupsModel, generic.models.GenericContactableModel, generic.models.LinkedInfoModel, accounting_core.models.AccountingGroupModels, generic.search.SearchableModel),
+ ),
+ migrations.CreateModel(
+ name='CashBookFile',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('upload_date', models.DateTimeField(auto_now_add=True)),
+ ('file', models.FileField(upload_to=b'uploads/_generic/CashBook/')),
+ ('object', models.ForeignKey(related_name='files', blank=True, to='accounting_tools.CashBook', null=True, on_delete=models.deletion.SET_NULL)),
+ ('uploader', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='CashBookLine',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('order', models.SmallIntegerField(default=0)),
+ ('date', models.DateField(verbose_name='Date')),
+ ('helper', models.CharField(max_length=15, choices=[(b'0_withdraw', "J'ai fait un retrait cash : "), (b'1_deposit', "J'ai fait un versement \xe0 la banque : "), (b'2_sell', "J'ai vendu quelque chose : "), (b'3_invoice', "J'ai pay\xe9 une facture avec la caisse : "), (b'4_buy', "J'ai achet\xe9 quelque chose avec la caisse : "), (b'5_reimburse', "J'ai rembours\xe9 quelqu'un avec la caisse : "), (b'6_input', 'Je fais un Cr\xe9dit manuel : '), (b'7_output', 'Je fais un D\xe9bit manuel : ')])),
+ ('label', models.CharField(max_length=255, verbose_name='Concerne')),
+ ('proof', models.CharField(max_length=255, verbose_name='Justificatif', blank=True)),
+ ('value', models.DecimalField(verbose_name='Montant (HT)', max_digits=20, decimal_places=2)),
+ ('tva', models.DecimalField(verbose_name='VAT', max_digits=20, decimal_places=2)),
+ ('value_ttc', models.DecimalField(verbose_name='Montant (TTC)', max_digits=20, decimal_places=2)),
+ ('account', models.ForeignKey(verbose_name='Account', to='accounting_core.Account', on_delete=models.deletion.PROTECT)),
+ ('cashbook', models.ForeignKey(related_name='lines', to='accounting_tools.CashBook', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='CashBookLogging',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('extra_data', models.TextField(blank=True)),
+ ('what', models.CharField(max_length=64, choices=[(b'imported', 'Import\xe9 depuis Truffe 1'), (b'created', 'Creation'), (b'edited', 'Edit\xe9'), (b'deleted', 'Supprim\xe9'), (b'restored', 'Restaur\xe9'), (b'state_changed', 'Statut chang\xe9'), (b'file_added', 'Fichier ajout\xe9'), (b'file_removed', 'Fichier supprim\xe9')])),
+ ('object', models.ForeignKey(related_name='logs', to='accounting_tools.CashBook', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='CashBookTag',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('tag', models.CharField(max_length=255)),
+ ('object', models.ForeignKey(related_name='tags', to='accounting_tools.CashBook', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='CashBookViews',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('object', models.ForeignKey(related_name='views', to='accounting_tools.CashBook', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='ExpenseClaim',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('deleted', models.BooleanField(default=False)),
+ ('name', models.CharField(max_length=255, verbose_name='Titre de la note de frais')),
+ ('nb_proofs', models.PositiveIntegerField(default=0, verbose_name='Nombre de justificatifs')),
+ ('comment', models.TextField(null=True, verbose_name='Commentaire', blank=True)),
+ ('status', models.CharField(default=b'0_draft', max_length=255, choices=[(b'6_canceled', 'Annul\xe9'), (b'3_agep_sig2', 'Attente signature CdD 2'), (b'6_archived', 'Archiv\xe9'), (b'3_agep_sig1', 'Attente signature CdD 1'), (b'2_agep_validable', 'Attente v\xe9rification secr\xe9tariat'), (b'0_correct', 'Corrections n\xe9cessaires'), (b'0_draft', 'Brouillon'), (b'5_in_accounting', 'En comptabilisation'), (b'1_unit_validable', 'Attente accord unit\xe9'), (b'4_accountable', 'A comptabiliser')])),
+ ('accounting_year', models.ForeignKey(verbose_name='Ann\xe9e comptable', to='accounting_core.AccountingYear', on_delete=models.deletion.PROTECT)),
+ ('costcenter', models.ForeignKey(verbose_name='Centre de co\xfbt', to='accounting_core.CostCenter', on_delete=models.deletion.PROTECT)),
+ ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model, generic.models.GenericTaggableObject, generic.models.GenericAccountingStateModel, generic.models.GenericStateModel, generic.models.GenericModelWithFiles, generic.models.GenericModelWithLines, accounting_core.utils.AccountingYearLinked, accounting_core.utils.CostCenterLinked, rights.utils.UnitEditableModel, generic.models.GenericGroupsModel, generic.models.GenericContactableModel, generic.models.LinkedInfoModel, accounting_core.models.AccountingGroupModels, generic.search.SearchableModel),
+ ),
+ migrations.CreateModel(
+ name='ExpenseClaimFile',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('upload_date', models.DateTimeField(auto_now_add=True)),
+ ('file', models.FileField(upload_to=b'uploads/_generic/ExpenseClaim/')),
+ ('object', models.ForeignKey(related_name='files', blank=True, to='accounting_tools.ExpenseClaim', null=True, on_delete=models.deletion.SET_NULL)),
+ ('uploader', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='ExpenseClaimLine',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('order', models.SmallIntegerField(default=0)),
+ ('label', models.CharField(max_length=255, verbose_name='Concerne')),
+ ('proof', models.CharField(max_length=255, verbose_name='Justificatif', blank=True)),
+ ('value', models.DecimalField(verbose_name='Montant (HT)', max_digits=20, decimal_places=2)),
+ ('tva', models.DecimalField(verbose_name='VAT', max_digits=20, decimal_places=2)),
+ ('value_ttc', models.DecimalField(verbose_name='Montant (TTC)', max_digits=20, decimal_places=2)),
+ ('account', models.ForeignKey(verbose_name='Account', to='accounting_core.Account', on_delete=models.deletion.PROTECT)),
+ ('expense_claim', models.ForeignKey(related_name='lines', to='accounting_tools.ExpenseClaim', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='ExpenseClaimLogging',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('extra_data', models.TextField(blank=True)),
+ ('what', models.CharField(max_length=64, choices=[(b'imported', 'Import\xe9 depuis Truffe 1'), (b'created', 'Creation'), (b'edited', 'Edit\xe9'), (b'deleted', 'Supprim\xe9'), (b'restored', 'Restaur\xe9'), (b'state_changed', 'Statut chang\xe9'), (b'file_added', 'Fichier ajout\xe9'), (b'file_removed', 'Fichier supprim\xe9')])),
+ ('object', models.ForeignKey(related_name='logs', to='accounting_tools.ExpenseClaim', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='ExpenseClaimTag',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('tag', models.CharField(max_length=255)),
+ ('object', models.ForeignKey(related_name='tags', to='accounting_tools.ExpenseClaim', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='ExpenseClaimViews',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('object', models.ForeignKey(related_name='views', to='accounting_tools.ExpenseClaim', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='FinancialProvider',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('deleted', models.BooleanField(default=False)),
+ ('name', models.CharField(max_length=255, verbose_name='Nom du fournisseur')),
+ ('tva_number', models.CharField(help_text='CHE-XXX.XXX.XXX (Recherche)', max_length=255, verbose_name='Num\xe9ro de TVA du fournisseur', blank=True)),
+ ('iban_ou_ccp', models.CharField(help_text='(Convertir un num\xe9ro de compte en IBAN) Si la convertion ne fonctionne pas, noter CH00 et mettre le num\xe9ro de compte en remarque.', max_length=128, verbose_name='IBAN')),
+ ('bic', models.CharField(help_text='Obligatoire si le fournisseur est \xe9tranger', max_length=128, verbose_name='BIC/SWIFT', blank=True)),
+ ('address', models.CharField(help_text="Exemple: 'Rue Des Arc en Ciel 25 - Case Postale 2, CH-1015 Lausanne'", max_length=255, verbose_name='Adresse')),
+ ('remarks', models.TextField(null=True, verbose_name='Remarques', blank=True)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model, generic.search.SearchableModel, rights.utils.AgepolyEditableModel),
+ ),
+ migrations.CreateModel(
+ name='FinancialProviderLogging',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('extra_data', models.TextField(blank=True)),
+ ('what', models.CharField(max_length=64, choices=[(b'imported', 'Import\xe9 depuis Truffe 1'), (b'created', 'Creation'), (b'edited', 'Edit\xe9'), (b'deleted', 'Supprim\xe9'), (b'restored', 'Restaur\xe9'), (b'state_changed', 'Statut chang\xe9'), (b'file_added', 'Fichier ajout\xe9'), (b'file_removed', 'Fichier supprim\xe9')])),
+ ('object', models.ForeignKey(related_name='logs', to='accounting_tools.FinancialProvider', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='FinancialProviderViews',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('object', models.ForeignKey(related_name='views', to='accounting_tools.FinancialProvider', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='InternalTransfer',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('deleted', models.BooleanField(default=False)),
+ ('name', models.CharField(max_length=255, verbose_name='Raison du transfert')),
+ ('description', models.TextField(null=True, verbose_name='Description', blank=True)),
+ ('amount', models.DecimalField(verbose_name='Montant', max_digits=20, decimal_places=2)),
+ ('transfert_date', models.DateField(null=True, verbose_name='Date effective', blank=True)),
+ ('status', models.CharField(default=b'0_draft', max_length=255, choices=[(b'1_agep_validable', 'Attente accord AGEPoly'), (b'3_canceled', 'Annul\xe9'), (b'0_draft', 'Brouillon'), (b'2_accountable', 'A comptabiliser'), (b'3_archived', 'Archiv\xe9')])),
+ ('account', models.ForeignKey(verbose_name='Compte concern\xe9', to='accounting_core.Account', on_delete=models.deletion.PROTECT)),
+ ('accounting_year', models.ForeignKey(verbose_name='Ann\xe9e comptable', to='accounting_core.AccountingYear', on_delete=models.deletion.PROTECT)),
+ ('cost_center_from', models.ForeignKey(related_name='internal_transfer_from', verbose_name='Centre de co\xfbts pr\xe9lev\xe9', to='accounting_core.CostCenter', on_delete=models.deletion.PROTECT)),
+ ('cost_center_to', models.ForeignKey(related_name='internal_transfer_to', verbose_name='Centre de co\xfbts vers\xe9', to='accounting_core.CostCenter', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model, generic.models.GenericStateModel, generic.models.GenericTaggableObject, accounting_core.utils.AccountingYearLinked, rights.utils.AgepolyEditableModel, generic.models.GenericGroupsModel, generic.models.GenericContactableModel, generic.search.SearchableModel),
+ ),
+ migrations.CreateModel(
+ name='InternalTransferLogging',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('extra_data', models.TextField(blank=True)),
+ ('what', models.CharField(max_length=64, choices=[(b'imported', 'Import\xe9 depuis Truffe 1'), (b'created', 'Creation'), (b'edited', 'Edit\xe9'), (b'deleted', 'Supprim\xe9'), (b'restored', 'Restaur\xe9'), (b'state_changed', 'Statut chang\xe9'), (b'file_added', 'Fichier ajout\xe9'), (b'file_removed', 'Fichier supprim\xe9')])),
+ ('object', models.ForeignKey(related_name='logs', to='accounting_tools.InternalTransfer', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='InternalTransferTag',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('tag', models.CharField(max_length=255)),
+ ('object', models.ForeignKey(related_name='tags', to='accounting_tools.InternalTransfer', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='InternalTransferViews',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('object', models.ForeignKey(related_name='views', to='accounting_tools.InternalTransfer', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='Invoice',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('deleted', models.BooleanField(default=False)),
+ ('title', models.CharField(max_length=255)),
+ ('custom_bvr_number', models.CharField(help_text='Ne PAS utiliser un num\xe9ro al\xe9atoire, mais utiliser un VRAI et UNIQUE num\xe9ro de BVR. Seulement pour des BVR physiques. Si pas renseign\xe9, un num\xe9ro sera g\xe9n\xe9r\xe9 automatiquement. Il est possible de demander des BVR \xe0 Marianne.', max_length=59, null=True, verbose_name='Num\xe9ro de BVR manuel', blank=True)),
+ ('address', models.TextField(help_text="Exemple: 'Monsieur Poney - Rue Des Canard 19 - 1015 Lausanne'", null=True, verbose_name='Adresse', blank=True)),
+ ('date_and_place', models.CharField(max_length=512, null=True, verbose_name='Lieu et date', blank=True)),
+ ('preface', models.TextField(help_text="Texte affich\xe9 avant la liste. Exemple: 'Pour l'achat du Yearbook 2014' ou 'Ch\xe8re Madame, - Par la pr\xe9sente, je me permets de vous remettre notre facture pour le financement de nos activit\xe9s associatives pour l'ann\xe9e acad\xe9mique 2014-2015.'", null=True, verbose_name='Introduction', blank=True)),
+ ('ending', models.TextField(help_text='Affich\xe9 apr\xe8s la liste, avant les moyens de paiements', max_length=1024, null=True, verbose_name='Conclusion', blank=True)),
+ ('display_bvr', models.BooleanField(default=True, help_text="Affiche un BVR et le texte corespondant dans le PDF. Attention, le BVR g\xe9n\xe9r\xe9 n'est pas utilisable \xe0 la poste ! (Il est possible d'obtenir un 'vrai' BVR via Marianne.)", verbose_name='Afficher paiement via BVR')),
+ ('display_account', models.BooleanField(default=True, help_text="Affiche le texte pour le paiement via le compte de l'AGEPoly.", verbose_name='Afficher paiement via compte')),
+ ('greetings', models.CharField(default=b'', max_length=1024, null=True, verbose_name='Salutations', blank=True)),
+ ('sign', models.TextField(help_text='Titre de la zone de signature', null=True, verbose_name='Signature', blank=True)),
+ ('annex', models.BooleanField(default=False, help_text="Affiche 'Annexe(s): ment.' en bas de la facture", verbose_name='Annexes')),
+ ('delay', models.SmallIntegerField(default=30, help_text="Mettre z\xe9ro pour cacher le texte. Il s'agit du nombre de jours de d\xe9lai pour le paiement.", verbose_name='D\xe9lai de paiement en jours')),
+ ('english', models.BooleanField(default=False, help_text='G\xe9n\xe9re la facture en anglais', verbose_name='Anglais')),
+ ('reception_date', models.DateField(help_text='Date de la r\xe9ception du paiement au niveau de la banque', null=True, verbose_name='Date valeur banque', blank=True)),
+ ('add_to', models.BooleanField(default=False, verbose_name='Add "To the attention of"')),
+ ('status', models.CharField(default=b'0_preparing', max_length=255, choices=[(b'1_need_bvr', "En attente d'un num\xe9ro BVR"), (b'5_canceled', 'Annul\xe9e'), (b'3_sent', 'Envoy\xe9e / paiement en attente'), (b'0_preparing', 'En pr\xe9paration'), (b'0_correct', 'Corrections n\xe9cessaires'), (b'2_ask_accord', 'Attente Accord AGEPoly'), (b'2_accord', 'Attente Envoi'), (b'4_archived', 'Archiv\xe9e / Paiement re\xe7u')])),
+ ('accounting_year', models.ForeignKey(verbose_name='Ann\xe9e comptable', to='accounting_core.AccountingYear', on_delete=models.deletion.PROTECT)),
+ ('costcenter', models.ForeignKey(verbose_name='Centre de co\xfbt', to='accounting_core.CostCenter', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model, generic.models.GenericStateModel, generic.models.GenericTaggableObject, accounting_core.utils.CostCenterLinked, generic.models.GenericModelWithLines, generic.models.GenericGroupsModel, generic.models.GenericContactableModel, accounting_core.utils.AccountingYearLinked, rights.utils.UnitEditableModel, generic.search.SearchableModel),
+ ),
+ migrations.CreateModel(
+ name='InvoiceLine',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('order', models.SmallIntegerField(default=0)),
+ ('label', models.CharField(max_length=255, verbose_name='Titre')),
+ ('quantity', models.DecimalField(default=1, verbose_name='Quantit\xe9', max_digits=20, decimal_places=0)),
+ ('value', models.DecimalField(verbose_name='Montant unitaire (HT)', max_digits=20, decimal_places=2)),
+ ('tva', models.DecimalField(verbose_name='VAT', max_digits=20, decimal_places=2)),
+ ('value_ttc', models.DecimalField(verbose_name='Montant (TTC)', max_digits=20, decimal_places=2)),
+ ('invoice', models.ForeignKey(related_name='lines', to='accounting_tools.Invoice', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='InvoiceLogging',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('extra_data', models.TextField(blank=True)),
+ ('what', models.CharField(max_length=64, choices=[(b'imported', 'Import\xe9 depuis Truffe 1'), (b'created', 'Creation'), (b'edited', 'Edit\xe9'), (b'deleted', 'Supprim\xe9'), (b'restored', 'Restaur\xe9'), (b'state_changed', 'Statut chang\xe9'), (b'file_added', 'Fichier ajout\xe9'), (b'file_removed', 'Fichier supprim\xe9')])),
+ ('object', models.ForeignKey(related_name='logs', to='accounting_tools.Invoice', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='InvoiceTag',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('tag', models.CharField(max_length=255)),
+ ('object', models.ForeignKey(related_name='tags', to='accounting_tools.Invoice', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='InvoiceViews',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('object', models.ForeignKey(related_name='views', to='accounting_tools.Invoice', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='LinkedInfo',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('object_id', models.PositiveIntegerField()),
+ ('user_pk', models.PositiveIntegerField()),
+ ('first_name', models.CharField(max_length=50, verbose_name='Pr\xe9nom')),
+ ('last_name', models.CharField(max_length=50, verbose_name='Nom de famille')),
+ ('address', models.TextField(verbose_name='Adresse')),
+ ('phone', models.CharField(max_length=20, verbose_name='Num\xe9ro de t\xe9l\xe9phone')),
+ ('bank', models.CharField(max_length=128, verbose_name='Nom de la banque')),
+ ('iban_ccp', models.CharField(max_length=128, verbose_name='IBAN / CCP')),
+ ('content_type', models.ForeignKey(to='contenttypes.ContentType', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='ProviderInvoice',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('deleted', models.BooleanField(default=False)),
+ ('name', models.CharField(max_length=255, verbose_name='Titre de la facture fournisseur')),
+ ('comment', models.TextField(null=True, verbose_name='Commentaire', blank=True)),
+ ('reference_number', models.CharField(max_length=255, null=True, verbose_name='Num\xe9ro de R\xe9f\xe9rence', blank=True)),
+ ('raw_pay_code', models.TextField(null=True, verbose_name='Raw Swiss Payment Code', blank=True)),
+ ('currency', models.CharField(default=b'CHF', max_length=3, verbose_name='Devise', choices=[(b'AED', b'AED'), (b'AFN', b'AFN'), (b'ALL', b'ALL'), (b'AMD', b'AMD'), (b'ANG', b'ANG'), (b'AOA', b'AOA'), (b'ARS', b'ARS'), (b'AUD', b'AUD'), (b'AWG', b'AWG'), (b'AZN', b'AZN'), (b'BAM', b'BAM'), (b'BBD', b'BBD'), (b'BDT', b'BDT'), (b'BGN', b'BGN'), (b'BHD', b'BHD'), (b'BIF', b'BIF'), (b'BMD', b'BMD'), (b'BND', b'BND'), (b'BOB', b'BOB'), (b'BOV', b'BOV'), (b'BRL', b'BRL'), (b'BSD', b'BSD'), (b'BTN', b'BTN'), (b'BWP', b'BWP'), (b'BYN', b'BYN'), (b'BZD', b'BZD'), (b'CAD', b'CAD'), (b'CDF', b'CDF'), (b'CHE', b'CHE'), (b'CHF', b'CHF'), (b'CHW', b'CHW'), (b'CLF', b'CLF'), (b'CLP', b'CLP'), (b'CNY', b'CNY'), (b'COP', b'COP'), (b'COU', b'COU'), (b'CRC', b'CRC'), (b'CUC', b'CUC'), (b'CUP', b'CUP'), (b'CVE', b'CVE'), (b'CZK', b'CZK'), (b'DJF', b'DJF'), (b'DKK', b'DKK'), (b'DOP', b'DOP'), (b'DZD', b'DZD'), (b'EGP', b'EGP'), (b'ERN', b'ERN'), (b'ETB', b'ETB'), (b'EUR', b'EUR'), (b'FJD', b'FJD'), (b'FKP', b'FKP'), (b'GBP', b'GBP'), (b'GEL', b'GEL'), (b'GHS', b'GHS'), (b'GIP', b'GIP'), (b'GMD', b'GMD'), (b'GNF', b'GNF'), (b'GTQ', b'GTQ'), (b'GYD', b'GYD'), (b'HKD', b'HKD'), (b'HNL', b'HNL'), (b'HRK', b'HRK'), (b'HTG', b'HTG'), (b'HUF', b'HUF'), (b'IDR', b'IDR'), (b'ILS', b'ILS'), (b'INR', b'INR'), (b'IQD', b'IQD'), (b'IRR', b'IRR'), (b'ISK', b'ISK'), (b'JMD', b'JMD'), (b'JOD', b'JOD'), (b'JPY', b'JPY'), (b'KES', b'KES'), (b'KGS', b'KGS'), (b'KHR', b'KHR'), (b'KMF', b'KMF'), (b'KPW', b'KPW'), (b'KRW', b'KRW'), (b'KWD', b'KWD'), (b'KYD', b'KYD'), (b'KZT', b'KZT'), (b'LAK', b'LAK'), (b'LBP', b'LBP'), (b'LKR', b'LKR'), (b'LRD', b'LRD'), (b'LSL', b'LSL'), (b'LYD', b'LYD'), (b'MAD', b'MAD'), (b'MDL', b'MDL'), (b'MGA', b'MGA'), (b'MKD', b'MKD'), (b'MMK', b'MMK'), (b'MNT', b'MNT'), (b'MOP', b'MOP'), (b'MRU', b'MRU'), (b'MUR', b'MUR'), (b'MVR', b'MVR'), (b'MWK', b'MWK'), (b'MXN', b'MXN'), (b'MXV', b'MXV'), (b'MYR', b'MYR'), (b'MZN', b'MZN'), (b'NAD', b'NAD'), (b'NGN', b'NGN'), (b'NIO', b'NIO'), (b'NOK', b'NOK'), (b'NPR', b'NPR'), (b'NZD', b'NZD'), (b'OMR', b'OMR'), (b'PAB', b'PAB'), (b'PEN', b'PEN'), (b'PGK', b'PGK'), (b'PHP', b'PHP'), (b'PKR', b'PKR'), (b'PLN', b'PLN'), (b'PYG', b'PYG'), (b'QAR', b'QAR'), (b'RON', b'RON'), (b'RSD', b'RSD'), (b'RUB', b'RUB'), (b'RWF', b'RWF'), (b'SAR', b'SAR'), (b'SBD', b'SBD'), (b'SCR', b'SCR'), (b'SDG', b'SDG'), (b'SEK', b'SEK'), (b'SGD', b'SGD'), (b'SHP', b'SHP'), (b'SLL', b'SLL'), (b'SOS', b'SOS'), (b'SRD', b'SRD'), (b'SSP', b'SSP'), (b'STN', b'STN'), (b'SVC', b'SVC'), (b'SYP', b'SYP'), (b'SZL', b'SZL'), (b'THB', b'THB'), (b'TJS', b'TJS'), (b'TMT', b'TMT'), (b'TND', b'TND'), (b'TOP', b'TOP'), (b'TRY', b'TRY'), (b'TTD', b'TTD'), (b'TWD', b'TWD'), (b'TZS', b'TZS'), (b'UAH', b'UAH'), (b'UGX', b'UGX'), (b'USD', b'USD'), (b'USN', b'USN'), (b'UYI', b'UYI'), (b'UYU', b'UYU'), (b'UYW', b'UYW'), (b'UZS', b'UZS'), (b'VES', b'VES'), (b'VND', b'VND'), (b'VUV', b'VUV'), (b'WST', b'WST'), (b'XAF', b'XAF'), (b'XCD', b'XCD'), (b'XOF', b'XOF'), (b'XPF', b'XPF'), (b'YER', b'YER'), (b'ZAR', b'ZAR'), (b'ZMW', b'ZMW'), (b'ZWL', b'ZWL')])),
+ ('status', models.CharField(default=b'0_draft', max_length=255, choices=[(b'6_canceled', 'Annul\xe9'), (b'3_agep_sig2', 'Attente signature CdD 2'), (b'6_archived', 'Archiv\xe9'), (b'3_agep_sig1', 'Attente signature CdD 1'), (b'2_agep_validable', 'Attente v\xe9rification secr\xe9tariat'), (b'0_correct', 'Corrections n\xe9cessaires'), (b'0_draft', 'Brouillon'), (b'5_in_accounting', 'En comptabilisation'), (b'1_unit_validable', 'Attente accord unit\xe9'), (b'4_accountable', 'A comptabiliser')])),
+ ('accounting_year', models.ForeignKey(verbose_name='Ann\xe9e comptable', to='accounting_core.AccountingYear', on_delete=models.deletion.PROTECT)),
+ ('costcenter', models.ForeignKey(verbose_name='Centre de co\xfbt', to='accounting_core.CostCenter', on_delete=models.deletion.PROTECT)),
+ ('provider', models.ForeignKey(verbose_name='Fournisseur', to='accounting_tools.FinancialProvider', on_delete=models.deletion.PROTECT)),
+ ('user', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model, generic.models.GenericTaggableObject, generic.models.GenericAccountingStateModel, generic.models.GenericStateModel, generic.models.GenericModelWithFiles, generic.models.GenericModelWithLines, accounting_core.utils.AccountingYearLinked, accounting_core.utils.CostCenterLinked, rights.utils.UnitEditableModel, generic.models.GenericGroupsModel, generic.models.GenericContactableModel, generic.models.LinkedInfoModel, accounting_core.models.AccountingGroupModels, generic.search.SearchableModel),
+ ),
+ migrations.CreateModel(
+ name='ProviderInvoiceFile',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('upload_date', models.DateTimeField(auto_now_add=True)),
+ ('file', models.FileField(upload_to=b'uploads/_generic/ProviderInvoice/')),
+ ('object', models.ForeignKey(related_name='files', blank=True, to='accounting_tools.ProviderInvoice', null=True, on_delete=models.deletion.SET_NULL)),
+ ('uploader', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='ProviderInvoiceLine',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('order', models.SmallIntegerField(default=0)),
+ ('label', models.CharField(max_length=255, verbose_name='Concerne')),
+ ('value', models.DecimalField(verbose_name='Montant (HT)', max_digits=20, decimal_places=2)),
+ ('tva', models.DecimalField(verbose_name='VAT', max_digits=20, decimal_places=2)),
+ ('value_ttc', models.DecimalField(verbose_name='Montant (TTC)', max_digits=20, decimal_places=2)),
+ ('account', models.ForeignKey(verbose_name='Account', to='accounting_core.Account', on_delete=models.deletion.PROTECT)),
+ ('providerInvoice', models.ForeignKey(related_name='lines', to='accounting_tools.ProviderInvoice', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='ProviderInvoiceLogging',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('extra_data', models.TextField(blank=True)),
+ ('what', models.CharField(max_length=64, choices=[(b'imported', 'Import\xe9 depuis Truffe 1'), (b'created', 'Creation'), (b'edited', 'Edit\xe9'), (b'deleted', 'Supprim\xe9'), (b'restored', 'Restaur\xe9'), (b'state_changed', 'Statut chang\xe9'), (b'file_added', 'Fichier ajout\xe9'), (b'file_removed', 'Fichier supprim\xe9')])),
+ ('object', models.ForeignKey(related_name='logs', to='accounting_tools.ProviderInvoice', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='ProviderInvoiceTag',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('tag', models.CharField(max_length=255)),
+ ('object', models.ForeignKey(related_name='tags', to='accounting_tools.ProviderInvoice', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='ProviderInvoiceViews',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('object', models.ForeignKey(related_name='views', to='accounting_tools.ProviderInvoice', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='Subvention',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('deleted', models.BooleanField(default=False)),
+ ('name', models.CharField(max_length=255, verbose_name='Nom du projet')),
+ ('amount_asked', models.IntegerField(verbose_name='Montant demand\xe9')),
+ ('amount_given', models.IntegerField(null=True, verbose_name='Montant attribu\xe9', blank=True)),
+ ('mobility_asked', models.IntegerField(null=True, verbose_name='Montant mobilit\xe9 demand\xe9', blank=True)),
+ ('mobility_given', models.IntegerField(null=True, verbose_name='Montant mobilit\xe9 attribu\xe9', blank=True)),
+ ('description', models.TextField(null=True, verbose_name='Description', blank=True)),
+ ('comment_root', models.TextField(null=True, verbose_name='Commentaire AGEPoly', blank=True)),
+ ('kind', models.CharField(blank=True, max_length=15, null=True, verbose_name='Type de soutien', choices=[(b'subvention', 'Subvention'), (b'sponsorship', 'Sponsoring')])),
+ ('status', models.CharField(default=b'0_draft', max_length=255, choices=[(b'0_correct', 'A corriger'), (b'0_draft', 'Brouillon'), (b'1_submited', 'Demande soumise'), (b'2_treated', 'Demande trait\xe9e')])),
+ ('unit_blank_name', models.CharField(max_length=255, null=True, verbose_name="Nom de l'entit\xe9 externe", blank=True)),
+ ('accounting_year', models.ForeignKey(verbose_name='Ann\xe9e comptable', to='accounting_core.AccountingYear', on_delete=models.deletion.PROTECT)),
+ ('linked_budget', models.ForeignKey(verbose_name='Budget annuel li\xe9', blank=True, to='accounting_main.Budget', null=True, on_delete=models.deletion.SET_NULL)),
+ ('unit', models.ForeignKey(blank=True, to='units.Unit', null=True, on_delete=models.deletion.SET_NULL)),
+ ('unit_blank_user', models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True, on_delete=models.deletion.SET_NULL)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model, generic.models.GenericModelWithFiles, generic.models.GenericModelWithLines, accounting_core.utils.AccountingYearLinked, generic.models.GenericStateModel, generic.models.GenericGroupsModel, rights.utils.UnitExternalEditableModel, generic.models.GenericExternalUnitAllowed, generic.models.GenericContactableModel, generic.search.SearchableModel),
+ ),
+ migrations.CreateModel(
+ name='SubventionFile',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('upload_date', models.DateTimeField(auto_now_add=True)),
+ ('file', models.FileField(upload_to=b'uploads/_generic/Subvention/')),
+ ('object', models.ForeignKey(related_name='files', blank=True, to='accounting_tools.Subvention', null=True, on_delete=models.deletion.SET_NULL)),
+ ('uploader', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='SubventionLine',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('order', models.SmallIntegerField(default=0)),
+ ('name', models.CharField(max_length=255, verbose_name="Nom de l'\xe9v\xe8nement")),
+ ('start_date', models.DateField(verbose_name="D\xe9but de l'\xe9v\xe8nement")),
+ ('end_date', models.DateField(verbose_name="Fin de l'\xe9v\xe8nement")),
+ ('place', models.CharField(max_length=100, verbose_name="Lieu de l'\xe9v\xe8nement")),
+ ('nb_spec', models.PositiveIntegerField(verbose_name='Nombre de personnes attendues')),
+ ('subvention', models.ForeignKey(related_name='events', verbose_name='Subvention/sponsoring', to='accounting_tools.Subvention', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='SubventionLogging',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('extra_data', models.TextField(blank=True)),
+ ('what', models.CharField(max_length=64, choices=[(b'imported', 'Import\xe9 depuis Truffe 1'), (b'created', 'Creation'), (b'edited', 'Edit\xe9'), (b'deleted', 'Supprim\xe9'), (b'restored', 'Restaur\xe9'), (b'state_changed', 'Statut chang\xe9'), (b'file_added', 'Fichier ajout\xe9'), (b'file_removed', 'Fichier supprim\xe9')])),
+ ('object', models.ForeignKey(related_name='logs', to='accounting_tools.Subvention', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='SubventionViews',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('object', models.ForeignKey(related_name='views', to='accounting_tools.Subvention', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='Withdrawal',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('deleted', models.BooleanField(default=False)),
+ ('name', models.CharField(max_length=255, verbose_name='Raison du retrait')),
+ ('description', models.TextField(null=True, verbose_name='Description', blank=True)),
+ ('amount', models.DecimalField(verbose_name='Montant', max_digits=20, decimal_places=2)),
+ ('desired_date', models.DateField(verbose_name='Date souhait\xe9e')),
+ ('withdrawn_date', models.DateField(null=True, verbose_name='Date r\xe9elle de retrait', blank=True)),
+ ('status', models.CharField(default=b'0_draft', max_length=255, choices=[(b'3_used', 'R\xe9cup\xe9r\xe9 / A justifier'), (b'1_agep_validable', 'Attente accord AGEPoly'), (b'0_draft', 'Brouillon'), (b'4_canceled', 'Annul\xe9'), (b'2_withdrawn', 'Pr\xeat \xe0 \xeatre r\xe9cup\xe9r\xe9'), (b'4_archived', 'Archiv\xe9')])),
+ ('accounting_year', models.ForeignKey(verbose_name='Ann\xe9e comptable', to='accounting_core.AccountingYear', on_delete=models.deletion.PROTECT)),
+ ('costcenter', models.ForeignKey(verbose_name='Centre de co\xfbt', to='accounting_core.CostCenter', on_delete=models.deletion.PROTECT)),
+ ('user', models.ForeignKey(verbose_name='Responsable', to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model, generic.models.GenericStateModel, generic.models.GenericTaggableObject, generic.models.GenericModelWithFiles, accounting_core.utils.AccountingYearLinked, accounting_core.utils.CostCenterLinked, rights.utils.UnitEditableModel, generic.models.GenericGroupsModel, generic.models.GenericContactableModel, generic.models.LinkedInfoModel, generic.search.SearchableModel),
+ ),
+ migrations.CreateModel(
+ name='WithdrawalFile',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('upload_date', models.DateTimeField(auto_now_add=True)),
+ ('file', models.FileField(upload_to=b'uploads/_generic/Withdrawal/')),
+ ('object', models.ForeignKey(related_name='files', blank=True, to='accounting_tools.Withdrawal', null=True, on_delete=models.deletion.SET_NULL)),
+ ('uploader', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='WithdrawalLogging',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('extra_data', models.TextField(blank=True)),
+ ('what', models.CharField(max_length=64, choices=[(b'imported', 'Import\xe9 depuis Truffe 1'), (b'created', 'Creation'), (b'edited', 'Edit\xe9'), (b'deleted', 'Supprim\xe9'), (b'restored', 'Restaur\xe9'), (b'state_changed', 'Statut chang\xe9'), (b'file_added', 'Fichier ajout\xe9'), (b'file_removed', 'Fichier supprim\xe9')])),
+ ('object', models.ForeignKey(related_name='logs', to='accounting_tools.Withdrawal', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='WithdrawalTag',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('tag', models.CharField(max_length=255)),
+ ('object', models.ForeignKey(related_name='tags', to='accounting_tools.Withdrawal', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='WithdrawalViews',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('object', models.ForeignKey(related_name='views', to='accounting_tools.Withdrawal', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ ]
diff --git a/truffe2/accounting_tools/migrations/0002_auto_20201104_1311-4.py b/truffe2/accounting_tools/migrations/0002_auto_20201104_1311-4.py
new file mode 100644
index 00000000..2a524085
--- /dev/null
+++ b/truffe2/accounting_tools/migrations/0002_auto_20201104_1311-4.py
@@ -0,0 +1,56 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.29 on 2020-11-04 12:11
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('accounting_tools', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='cashbookline',
+ name='account',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='accounting_core.Account', verbose_name='Compte'),
+ ),
+ migrations.AlterField(
+ model_name='cashbookline',
+ name='tva',
+ field=models.DecimalField(decimal_places=2, max_digits=20, verbose_name='TVA'),
+ ),
+ migrations.AlterField(
+ model_name='expenseclaimline',
+ name='account',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='accounting_core.Account', verbose_name='Compte'),
+ ),
+ migrations.AlterField(
+ model_name='expenseclaimline',
+ name='tva',
+ field=models.DecimalField(decimal_places=2, max_digits=20, verbose_name='TVA'),
+ ),
+ migrations.AlterField(
+ model_name='invoice',
+ name='add_to',
+ field=models.BooleanField(default=False, verbose_name='Rajouter "\xc0 l\'attention de"'),
+ ),
+ migrations.AlterField(
+ model_name='invoiceline',
+ name='tva',
+ field=models.DecimalField(decimal_places=2, max_digits=20, verbose_name='TVA'),
+ ),
+ migrations.AlterField(
+ model_name='providerinvoiceline',
+ name='account',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='accounting_core.Account', verbose_name='Compte'),
+ ),
+ migrations.AlterField(
+ model_name='providerinvoiceline',
+ name='tva',
+ field=models.DecimalField(decimal_places=2, max_digits=20, verbose_name='TVA'),
+ ),
+ ]
diff --git a/truffe2/accounting_tools/migrations/0002_auto__chg_field_subvention_kind__chg_field_subvention_mobility_given__.py b/truffe2/accounting_tools/migrations/0002_auto__chg_field_subvention_kind__chg_field_subvention_mobility_given__.py
deleted file mode 100644
index aa08e73a..00000000
--- a/truffe2/accounting_tools/migrations/0002_auto__chg_field_subvention_kind__chg_field_subvention_mobility_given__.py
+++ /dev/null
@@ -1,139 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
-
- # Changing field 'Subvention.kind'
- db.alter_column(u'accounting_tools_subvention', 'kind', self.gf('django.db.models.fields.CharField')(max_length=15, null=True))
-
- # Changing field 'Subvention.mobility_given'
- db.alter_column(u'accounting_tools_subvention', 'mobility_given', self.gf('django.db.models.fields.SmallIntegerField')(null=True))
-
- # Changing field 'Subvention.amount_given'
- db.alter_column(u'accounting_tools_subvention', 'amount_given', self.gf('django.db.models.fields.SmallIntegerField')(null=True))
-
- # Changing field 'Subvention.mobility_asked'
- db.alter_column(u'accounting_tools_subvention', 'mobility_asked', self.gf('django.db.models.fields.SmallIntegerField')(null=True))
-
- def backwards(self, orm):
-
- # Changing field 'Subvention.kind'
- db.alter_column(u'accounting_tools_subvention', 'kind', self.gf('django.db.models.fields.CharField')(default='', max_length=15))
-
- # Changing field 'Subvention.mobility_given'
- db.alter_column(u'accounting_tools_subvention', 'mobility_given', self.gf('django.db.models.fields.SmallIntegerField')(default=''))
-
- # Changing field 'Subvention.amount_given'
- db.alter_column(u'accounting_tools_subvention', 'amount_given', self.gf('django.db.models.fields.SmallIntegerField')(default=''))
-
- # Changing field 'Subvention.mobility_asked'
- db.alter_column(u'accounting_tools_subvention', 'mobility_asked', self.gf('django.db.models.fields.SmallIntegerField')(default=''))
-
- models = {
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0003_auto_20201104_1648.py b/truffe2/accounting_tools/migrations/0003_auto_20201104_1648.py
new file mode 100644
index 00000000..3bf13d79
--- /dev/null
+++ b/truffe2/accounting_tools/migrations/0003_auto_20201104_1648.py
@@ -0,0 +1,55 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.29 on 2020-11-04 15:48
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('accounting_tools', '0002_auto_20201104_1311-4'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='cashbook',
+ name='name',
+ field=models.CharField(default=b'---', max_length=255, verbose_name='Titre du journal de caisse'),
+ ),
+ migrations.AlterField(
+ model_name='expenseclaim',
+ name='name',
+ field=models.CharField(default=b'---', max_length=255, verbose_name='Titre de la note de frais'),
+ ),
+ migrations.AlterField(
+ model_name='financialprovider',
+ name='name',
+ field=models.CharField(default=b'---', max_length=255, verbose_name='Nom du fournisseur'),
+ ),
+ migrations.AlterField(
+ model_name='internaltransfer',
+ name='name',
+ field=models.CharField(default=b'---', max_length=255, verbose_name='Raison du transfert'),
+ ),
+ migrations.AlterField(
+ model_name='providerinvoice',
+ name='name',
+ field=models.CharField(default=b'---', max_length=255, verbose_name='Titre de la facture fournisseur'),
+ ),
+ migrations.AlterField(
+ model_name='subvention',
+ name='name',
+ field=models.CharField(default=b'---', max_length=255, verbose_name='Nom du projet'),
+ ),
+ migrations.AlterField(
+ model_name='subventionline',
+ name='name',
+ field=models.CharField(default=b'---', max_length=255, verbose_name="Nom de l'\xe9v\xe8nement"),
+ ),
+ migrations.AlterField(
+ model_name='withdrawal',
+ name='name',
+ field=models.CharField(default=b'---', max_length=255, verbose_name='Raison du retrait'),
+ ),
+ ]
diff --git a/truffe2/accounting_tools/migrations/0003_auto__add_field_subvention_unit_blank_user__add_field_subvention_unit_.py b/truffe2/accounting_tools/migrations/0003_auto__add_field_subvention_unit_blank_user__add_field_subvention_unit_.py
deleted file mode 100644
index 7f1d8818..00000000
--- a/truffe2/accounting_tools/migrations/0003_auto__add_field_subvention_unit_blank_user__add_field_subvention_unit_.py
+++ /dev/null
@@ -1,139 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'Subvention.unit_blank_user'
- db.add_column(u'accounting_tools_subvention', 'unit_blank_user',
- self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'], null=True, blank=True),
- keep_default=False)
-
- # Adding field 'Subvention.unit_blank_name'
- db.add_column(u'accounting_tools_subvention', 'unit_blank_name',
- self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True),
- keep_default=False)
-
-
- # Changing field 'Subvention.unit'
- db.alter_column(u'accounting_tools_subvention', 'unit_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['units.Unit'], null=True))
-
- def backwards(self, orm):
- # Deleting field 'Subvention.unit_blank_user'
- db.delete_column(u'accounting_tools_subvention', 'unit_blank_user_id')
-
- # Deleting field 'Subvention.unit_blank_name'
- db.delete_column(u'accounting_tools_subvention', 'unit_blank_name')
-
-
- # Changing field 'Subvention.unit'
- db.alter_column(u'accounting_tools_subvention', 'unit_id', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['units.Unit']))
-
- models = {
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0004_auto_20210210_1832.py b/truffe2/accounting_tools/migrations/0004_auto_20210210_1832.py
new file mode 100644
index 00000000..153ab8c8
--- /dev/null
+++ b/truffe2/accounting_tools/migrations/0004_auto_20210210_1832.py
@@ -0,0 +1,290 @@
+# Generated by Django 2.2.18 on 2021-02-10 17:32
+
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('accounting_tools', '0003_auto_20201104_1648'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='cashbook',
+ name='name',
+ field=models.CharField(default='---', max_length=255, verbose_name='Titre du journal de caisse'),
+ ),
+ migrations.AlterField(
+ model_name='cashbook',
+ name='status',
+ field=models.CharField(choices=[('0_draft', 'Brouillon'), ('0_correct', 'Corrections nécessaires'), ('1_unit_validable', 'Attente accord unité'), ('2_agep_validable', 'Attente vérification secrétariat'), ('3_agep_sig1', 'Attente signature CdD 1'), ('3_agep_sig2', 'Attente signature CdD 2'), ('4_accountable', 'A comptabiliser'), ('5_in_accounting', 'En comptabilisation'), ('6_archived', 'Archivé'), ('6_canceled', 'Annulé')], default='0_draft', max_length=255),
+ ),
+ migrations.AlterField(
+ model_name='cashbookfile',
+ name='file',
+ field=models.FileField(upload_to='uploads/_generic/CashBook/'),
+ ),
+ migrations.AlterField(
+ model_name='cashbookfile',
+ name='uploader',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='cashbookline',
+ name='helper',
+ field=models.CharField(choices=[('0_withdraw', "J'ai fait un retrait cash : "), ('1_deposit', "J'ai fait un versement à la banque : "), ('2_sell', "J'ai vendu quelque chose : "), ('3_invoice', "J'ai payé une facture avec la caisse : "), ('4_buy', "J'ai acheté quelque chose avec la caisse : "), ('5_reimburse', "J'ai remboursé quelqu'un avec la caisse : "), ('6_input', 'Je fais un Crédit manuel : '), ('7_output', 'Je fais un Débit manuel : ')], max_length=15),
+ ),
+ migrations.AlterField(
+ model_name='cashbooklogging',
+ name='what',
+ field=models.CharField(choices=[('imported', 'Importé depuis Truffe 1'), ('created', 'Creation'), ('edited', 'Edité'), ('deleted', 'Supprimé'), ('restored', 'Restauré'), ('state_changed', 'Statut changé'), ('file_added', 'Fichier ajouté'), ('file_removed', 'Fichier supprimé')], max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='cashbooklogging',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='cashbookviews',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='expenseclaim',
+ name='name',
+ field=models.CharField(default='---', max_length=255, verbose_name='Titre de la note de frais'),
+ ),
+ migrations.AlterField(
+ model_name='expenseclaim',
+ name='status',
+ field=models.CharField(choices=[('0_draft', 'Brouillon'), ('0_correct', 'Corrections nécessaires'), ('1_unit_validable', 'Attente accord unité'), ('2_agep_validable', 'Attente vérification secrétariat'), ('3_agep_sig1', 'Attente signature CdD 1'), ('3_agep_sig2', 'Attente signature CdD 2'), ('4_accountable', 'A comptabiliser'), ('5_in_accounting', 'En comptabilisation'), ('6_archived', 'Archivé'), ('6_canceled', 'Annulé')], default='0_draft', max_length=255),
+ ),
+ migrations.AlterField(
+ model_name='expenseclaimfile',
+ name='file',
+ field=models.FileField(upload_to='uploads/_generic/ExpenseClaim/'),
+ ),
+ migrations.AlterField(
+ model_name='expenseclaimfile',
+ name='uploader',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='expenseclaimlogging',
+ name='what',
+ field=models.CharField(choices=[('imported', 'Importé depuis Truffe 1'), ('created', 'Creation'), ('edited', 'Edité'), ('deleted', 'Supprimé'), ('restored', 'Restauré'), ('state_changed', 'Statut changé'), ('file_added', 'Fichier ajouté'), ('file_removed', 'Fichier supprimé')], max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='expenseclaimlogging',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='expenseclaimviews',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='financialprovider',
+ name='name',
+ field=models.CharField(default='---', max_length=255, verbose_name='Nom du fournisseur'),
+ ),
+ migrations.AlterField(
+ model_name='financialproviderlogging',
+ name='what',
+ field=models.CharField(choices=[('imported', 'Importé depuis Truffe 1'), ('created', 'Creation'), ('edited', 'Edité'), ('deleted', 'Supprimé'), ('restored', 'Restauré'), ('state_changed', 'Statut changé'), ('file_added', 'Fichier ajouté'), ('file_removed', 'Fichier supprimé')], max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='financialproviderlogging',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='financialproviderviews',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='internaltransfer',
+ name='name',
+ field=models.CharField(default='---', max_length=255, verbose_name='Raison du transfert'),
+ ),
+ migrations.AlterField(
+ model_name='internaltransfer',
+ name='status',
+ field=models.CharField(choices=[('0_draft', 'Brouillon'), ('1_agep_validable', 'Attente accord AGEPoly'), ('2_accountable', 'A comptabiliser'), ('3_archived', 'Archivé'), ('3_canceled', 'Annulé')], default='0_draft', max_length=255),
+ ),
+ migrations.AlterField(
+ model_name='internaltransferlogging',
+ name='what',
+ field=models.CharField(choices=[('imported', 'Importé depuis Truffe 1'), ('created', 'Creation'), ('edited', 'Edité'), ('deleted', 'Supprimé'), ('restored', 'Restauré'), ('state_changed', 'Statut changé'), ('file_added', 'Fichier ajouté'), ('file_removed', 'Fichier supprimé')], max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='internaltransferlogging',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='internaltransferviews',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='invoice',
+ name='greetings',
+ field=models.CharField(blank=True, default='', max_length=1024, null=True, verbose_name='Salutations'),
+ ),
+ migrations.AlterField(
+ model_name='invoice',
+ name='status',
+ field=models.CharField(choices=[('0_preparing', 'En préparation'), ('0_correct', 'Corrections nécessaires'), ('1_need_bvr', "En attente d'un numéro BVR"), ('2_ask_accord', 'Attente Accord AGEPoly'), ('2_accord', 'Attente Envoi'), ('3_sent', 'Envoyée / paiement en attente'), ('4_archived', 'Archivée / Paiement reçu'), ('5_canceled', 'Annulée')], default='0_preparing', max_length=255),
+ ),
+ migrations.AlterField(
+ model_name='invoicelogging',
+ name='what',
+ field=models.CharField(choices=[('imported', 'Importé depuis Truffe 1'), ('created', 'Creation'), ('edited', 'Edité'), ('deleted', 'Supprimé'), ('restored', 'Restauré'), ('state_changed', 'Statut changé'), ('file_added', 'Fichier ajouté'), ('file_removed', 'Fichier supprimé')], max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='invoicelogging',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='invoiceviews',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='providerinvoice',
+ name='currency',
+ field=models.CharField(choices=[('AFN', 'AFN'), ('EUR', 'EUR'), ('ALL', 'ALL'), ('DZD', 'DZD'), ('USD', 'USD'), ('AOA', 'AOA'), ('XCD', 'XCD'), ('ARS', 'ARS'), ('AMD', 'AMD'), ('AWG', 'AWG'), ('AUD', 'AUD'), ('AZN', 'AZN'), ('BSD', 'BSD'), ('BHD', 'BHD'), ('BDT', 'BDT'), ('BBD', 'BBD'), ('BYN', 'BYN'), ('BZD', 'BZD'), ('XOF', 'XOF'), ('BMD', 'BMD'), ('INR', 'INR'), ('BTN', 'BTN'), ('BOB', 'BOB'), ('BOV', 'BOV'), ('BAM', 'BAM'), ('BWP', 'BWP'), ('NOK', 'NOK'), ('BRL', 'BRL'), ('BND', 'BND'), ('BGN', 'BGN'), ('BIF', 'BIF'), ('CVE', 'CVE'), ('KHR', 'KHR'), ('XAF', 'XAF'), ('CAD', 'CAD'), ('KYD', 'KYD'), ('CLP', 'CLP'), ('CLF', 'CLF'), ('CNY', 'CNY'), ('COP', 'COP'), ('COU', 'COU'), ('KMF', 'KMF'), ('CDF', 'CDF'), ('NZD', 'NZD'), ('CRC', 'CRC'), ('HRK', 'HRK'), ('CUP', 'CUP'), ('CUC', 'CUC'), ('ANG', 'ANG'), ('CZK', 'CZK'), ('DKK', 'DKK'), ('DJF', 'DJF'), ('DOP', 'DOP'), ('EGP', 'EGP'), ('SVC', 'SVC'), ('ERN', 'ERN'), ('ETB', 'ETB'), ('FKP', 'FKP'), ('FJD', 'FJD'), ('XPF', 'XPF'), ('GMD', 'GMD'), ('GEL', 'GEL'), ('GHS', 'GHS'), ('GIP', 'GIP'), ('GTQ', 'GTQ'), ('GBP', 'GBP'), ('GNF', 'GNF'), ('GYD', 'GYD'), ('HTG', 'HTG'), ('HNL', 'HNL'), ('HKD', 'HKD'), ('HUF', 'HUF'), ('ISK', 'ISK'), ('IDR', 'IDR'), ('IRR', 'IRR'), ('IQD', 'IQD'), ('ILS', 'ILS'), ('JMD', 'JMD'), ('JPY', 'JPY'), ('JOD', 'JOD'), ('KZT', 'KZT'), ('KES', 'KES'), ('KPW', 'KPW'), ('KRW', 'KRW'), ('KWD', 'KWD'), ('KGS', 'KGS'), ('LAK', 'LAK'), ('LBP', 'LBP'), ('LSL', 'LSL'), ('ZAR', 'ZAR'), ('LRD', 'LRD'), ('LYD', 'LYD'), ('CHF', 'CHF'), ('MOP', 'MOP'), ('MKD', 'MKD'), ('MGA', 'MGA'), ('MWK', 'MWK'), ('MYR', 'MYR'), ('MVR', 'MVR'), ('MRU', 'MRU'), ('MUR', 'MUR'), ('MXN', 'MXN'), ('MXV', 'MXV'), ('MDL', 'MDL'), ('MNT', 'MNT'), ('MAD', 'MAD'), ('MZN', 'MZN'), ('MMK', 'MMK'), ('NAD', 'NAD'), ('NPR', 'NPR'), ('NIO', 'NIO'), ('NGN', 'NGN'), ('OMR', 'OMR'), ('PKR', 'PKR'), ('PAB', 'PAB'), ('PGK', 'PGK'), ('PYG', 'PYG'), ('PEN', 'PEN'), ('PHP', 'PHP'), ('PLN', 'PLN'), ('QAR', 'QAR'), ('RON', 'RON'), ('RUB', 'RUB'), ('RWF', 'RWF'), ('SHP', 'SHP'), ('WST', 'WST'), ('STN', 'STN'), ('SAR', 'SAR'), ('RSD', 'RSD'), ('SCR', 'SCR'), ('SLL', 'SLL'), ('SGD', 'SGD'), ('SBD', 'SBD'), ('SOS', 'SOS'), ('SSP', 'SSP'), ('LKR', 'LKR'), ('SDG', 'SDG'), ('SRD', 'SRD'), ('SZL', 'SZL'), ('SEK', 'SEK'), ('CHE', 'CHE'), ('CHW', 'CHW'), ('SYP', 'SYP'), ('TWD', 'TWD'), ('TJS', 'TJS'), ('TZS', 'TZS'), ('THB', 'THB'), ('TOP', 'TOP'), ('TTD', 'TTD'), ('TND', 'TND'), ('TRY', 'TRY'), ('TMT', 'TMT'), ('UGX', 'UGX'), ('UAH', 'UAH'), ('AED', 'AED'), ('USN', 'USN'), ('UYU', 'UYU'), ('UYI', 'UYI'), ('UYW', 'UYW'), ('UZS', 'UZS'), ('VUV', 'VUV'), ('VES', 'VES'), ('VND', 'VND'), ('YER', 'YER'), ('ZMW', 'ZMW'), ('ZWL', 'ZWL')], default='CHF', max_length=3, verbose_name='Devise'),
+ ),
+ migrations.AlterField(
+ model_name='providerinvoice',
+ name='name',
+ field=models.CharField(default='---', max_length=255, verbose_name='Titre de la facture fournisseur'),
+ ),
+ migrations.AlterField(
+ model_name='providerinvoice',
+ name='status',
+ field=models.CharField(choices=[('0_draft', 'Brouillon'), ('0_correct', 'Corrections nécessaires'), ('1_unit_validable', 'Attente accord unité'), ('2_agep_validable', 'Attente vérification secrétariat'), ('3_agep_sig1', 'Attente signature CdD 1'), ('3_agep_sig2', 'Attente signature CdD 2'), ('4_accountable', 'A comptabiliser'), ('5_in_accounting', 'En comptabilisation'), ('6_archived', 'Archivé'), ('6_canceled', 'Annulé')], default='0_draft', max_length=255),
+ ),
+ migrations.AlterField(
+ model_name='providerinvoicefile',
+ name='file',
+ field=models.FileField(upload_to='uploads/_generic/ProviderInvoice/'),
+ ),
+ migrations.AlterField(
+ model_name='providerinvoicefile',
+ name='uploader',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='providerinvoicelogging',
+ name='what',
+ field=models.CharField(choices=[('imported', 'Importé depuis Truffe 1'), ('created', 'Creation'), ('edited', 'Edité'), ('deleted', 'Supprimé'), ('restored', 'Restauré'), ('state_changed', 'Statut changé'), ('file_added', 'Fichier ajouté'), ('file_removed', 'Fichier supprimé')], max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='providerinvoicelogging',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='providerinvoiceviews',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='subvention',
+ name='kind',
+ field=models.CharField(blank=True, choices=[('subvention', 'Subvention'), ('sponsorship', 'Sponsoring')], max_length=15, null=True, verbose_name='Type de soutien'),
+ ),
+ migrations.AlterField(
+ model_name='subvention',
+ name='linked_budget',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='accounting_main.Budget', verbose_name='Budget annuel lié'),
+ ),
+ migrations.AlterField(
+ model_name='subvention',
+ name='name',
+ field=models.CharField(default='---', max_length=255, verbose_name='Nom du projet'),
+ ),
+ migrations.AlterField(
+ model_name='subvention',
+ name='status',
+ field=models.CharField(choices=[('0_draft', 'Brouillon'), ('0_correct', 'A corriger'), ('1_submited', 'Demande soumise'), ('2_treated', 'Demande traitée')], default='0_draft', max_length=255),
+ ),
+ migrations.AlterField(
+ model_name='subventionfile',
+ name='file',
+ field=models.FileField(upload_to='uploads/_generic/Subvention/'),
+ ),
+ migrations.AlterField(
+ model_name='subventionfile',
+ name='uploader',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='subventionline',
+ name='name',
+ field=models.CharField(default='---', max_length=255, verbose_name="Nom de l'évènement"),
+ ),
+ migrations.AlterField(
+ model_name='subventionlogging',
+ name='what',
+ field=models.CharField(choices=[('imported', 'Importé depuis Truffe 1'), ('created', 'Creation'), ('edited', 'Edité'), ('deleted', 'Supprimé'), ('restored', 'Restauré'), ('state_changed', 'Statut changé'), ('file_added', 'Fichier ajouté'), ('file_removed', 'Fichier supprimé')], max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='subventionlogging',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='subventionviews',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='withdrawal',
+ name='name',
+ field=models.CharField(default='---', max_length=255, verbose_name='Raison du retrait'),
+ ),
+ migrations.AlterField(
+ model_name='withdrawal',
+ name='status',
+ field=models.CharField(choices=[('0_draft', 'Brouillon'), ('1_agep_validable', 'Attente accord AGEPoly'), ('2_withdrawn', 'Prêt à être récupéré'), ('3_used', 'Récupéré / A justifier'), ('4_archived', 'Archivé'), ('4_canceled', 'Annulé')], default='0_draft', max_length=255),
+ ),
+ migrations.AlterField(
+ model_name='withdrawal',
+ name='user',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL, verbose_name='Responsable'),
+ ),
+ migrations.AlterField(
+ model_name='withdrawalfile',
+ name='file',
+ field=models.FileField(upload_to='uploads/_generic/Withdrawal/'),
+ ),
+ migrations.AlterField(
+ model_name='withdrawalfile',
+ name='uploader',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='withdrawallogging',
+ name='what',
+ field=models.CharField(choices=[('imported', 'Importé depuis Truffe 1'), ('created', 'Creation'), ('edited', 'Edité'), ('deleted', 'Supprimé'), ('restored', 'Restauré'), ('state_changed', 'Statut changé'), ('file_added', 'Fichier ajouté'), ('file_removed', 'Fichier supprimé')], max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='withdrawallogging',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='withdrawalviews',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ ]
diff --git a/truffe2/accounting_tools/migrations/0004_auto__del_unique_subvention_unit_accounting_year__add_unique_subventio.py b/truffe2/accounting_tools/migrations/0004_auto__del_unique_subvention_unit_accounting_year__add_unique_subventio.py
deleted file mode 100644
index 1132c20b..00000000
--- a/truffe2/accounting_tools/migrations/0004_auto__del_unique_subvention_unit_accounting_year__add_unique_subventio.py
+++ /dev/null
@@ -1,138 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Removing unique constraint on 'Subvention', fields ['unit', 'accounting_year']
- db.delete_unique(u'accounting_tools_subvention', ['unit_id', 'accounting_year_id'])
-
- # Adding unique constraint on 'Subvention', fields ['unit', 'unit_blank_name', 'accounting_year']
- db.create_unique(u'accounting_tools_subvention', ['unit_id', 'unit_blank_name', 'accounting_year_id'])
-
- # Adding field 'SubventionLine.subvention'
- db.add_column(u'accounting_tools_subventionline', 'subvention',
- self.gf('django.db.models.fields.related.ForeignKey')(default=1, related_name='events', to=orm['accounting_tools.Subvention']),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Removing unique constraint on 'Subvention', fields ['unit', 'unit_blank_name', 'accounting_year']
- db.delete_unique(u'accounting_tools_subvention', ['unit_id', 'unit_blank_name', 'accounting_year_id'])
-
- # Adding unique constraint on 'Subvention', fields ['unit', 'accounting_year']
- db.create_unique(u'accounting_tools_subvention', ['unit_id', 'accounting_year_id'])
-
- # Deleting field 'SubventionLine.subvention'
- db.delete_column(u'accounting_tools_subventionline', 'subvention_id')
-
-
- models = {
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0005_auto__add_invoicelogging__add_invoice.py b/truffe2/accounting_tools/migrations/0005_auto__add_invoicelogging__add_invoice.py
deleted file mode 100644
index 2688eabb..00000000
--- a/truffe2/accounting_tools/migrations/0005_auto__add_invoicelogging__add_invoice.py
+++ /dev/null
@@ -1,162 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'InvoiceLogging'
- db.create_table(u'accounting_tools_invoicelogging', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('extra_data', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('what', self.gf('django.db.models.fields.CharField')(max_length=64)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='logs', to=orm['accounting_tools.Invoice'])),
- ))
- db.send_create_signal(u'accounting_tools', ['InvoiceLogging'])
-
- # Adding model 'Invoice'
- db.create_table(u'accounting_tools_invoice', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('accounting_year', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_core.AccountingYear'])),
- ('unit', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['units.Unit'])),
- ))
- db.send_create_signal(u'accounting_tools', ['Invoice'])
-
-
- def backwards(self, orm):
- # Deleting model 'InvoiceLogging'
- db.delete_table(u'accounting_tools_invoicelogging')
-
- # Deleting model 'Invoice'
- db.delete_table(u'accounting_tools_invoice')
-
-
- models = {
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0005_auto__add_subventionfile.py b/truffe2/accounting_tools/migrations/0005_auto__add_subventionfile.py
deleted file mode 100644
index cda1d504..00000000
--- a/truffe2/accounting_tools/migrations/0005_auto__add_subventionfile.py
+++ /dev/null
@@ -1,177 +0,0 @@
-# Python bytecode 2.7 (62211)
-# Embedded file name: /var/www/git-repo/truffe2/truffe2/accounting_tools/migrations/0005_auto__add_subventionfile.py
-# Compiled at: 2015-07-04 20:37:00
-# Decompiled by https://python-decompiler.com
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-#this migration is a strange ghost, job is done in 0009, this is here for compat with old datas
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- pass
-
- def backwards(self, orm):
- pass
-
- models = {'accounting_core.accountingyear': {'Meta': {'object_name': 'AccountingYear'}, 'deleted': (
- 'django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': (
- 'django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': (
- 'django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': (
- 'django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': (
- 'django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': (
- 'django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})},
- 'accounting_tools.subvention': {'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'}, 'accounting_year': (
- 'django.db.models.fields.related.ForeignKey', [], {'to': "orm['accounting_core.AccountingYear']"}),
- 'amount_asked': (
- 'django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': (
- 'django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': (
- 'django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': (
- 'django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': (
- 'django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': (
- 'django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': (
- 'django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': (
- 'django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': (
- 'django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': (
- 'django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': (
- 'django.db.models.fields.related.ForeignKey', [], {'to': "orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': (
- 'django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': (
- 'django.db.models.fields.related.ForeignKey', [], {'to': "orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})},
- 'accounting_tools.subventionfile': {'Meta': {'object_name': 'SubventionFile'}, 'file': (
- 'django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': (
- 'django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': "orm['accounting_tools.Subvention']"}),
- 'upload_date': (
- 'django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': (
- 'django.db.models.fields.related.ForeignKey', [], {'to': "orm['users.TruffeUser']"})},
- 'accounting_tools.subventionline': {'Meta': {'object_name': 'SubventionLine'}, 'end_date': (
- 'django.db.models.fields.DateField', [], {}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': (
- 'django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': (
- 'django.db.models.fields.SmallIntegerField', [], {}),
- 'place': (
- 'django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': (
- 'django.db.models.fields.DateField', [], {}),
- 'subvention': (
- 'django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': "orm['accounting_tools.Subvention']"})},
- 'accounting_tools.subventionlogging': {'Meta': {'object_name': 'SubventionLogging'}, 'extra_data': (
- 'django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': (
- 'django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': "orm['accounting_tools.Subvention']"}),
- 'what': (
- 'django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': (
- 'django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': (
- 'django.db.models.fields.related.ForeignKey', [], {'to': "orm['users.TruffeUser']"})},
- 'auth.group': {'Meta': {'object_name': 'Group'}, 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': (
- 'django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': (
- 'django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})},
- 'auth.permission': {'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, 'codename': (
- 'django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': (
- 'django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': (
- 'django.db.models.fields.CharField', [], {'max_length': '50'})},
- 'contenttypes.contenttype': {'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, 'app_label': (
- 'django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': (
- 'django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': (
- 'django.db.models.fields.CharField', [], {'max_length': '100'})},
- 'units.unit': {'Meta': {'object_name': 'Unit'}, 'deleted': (
- 'django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': (
- 'django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': (
- 'django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': (
- 'django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': (
- 'django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': (
- 'django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': (
- 'django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': (
- 'django.db.models.fields.related.ForeignKey', [], {'to': "orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': (
- 'django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})},
- 'users.truffeuser': {'Meta': {'object_name': 'TruffeUser'}, 'adresse': (
- 'django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': (
- 'django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': (
- 'django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': (
- 'django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': (
- 'django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': (
- 'django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': (
- 'django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': "orm['auth.Group']"}),
- 'iban_ou_ccp': (
- 'django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': (
- 'django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': (
- 'django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': (
- 'django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': (
- 'django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': (
- 'django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': (
- 'django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': (
- 'django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': (
- 'django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': "orm['auth.Permission']"}),
- 'username': (
- 'django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})}}
- complete_apps = ['accounting_tools']
diff --git a/truffe2/accounting_tools/migrations/0006_auto__add_field_subventionline_order.py b/truffe2/accounting_tools/migrations/0006_auto__add_field_subventionline_order.py
deleted file mode 100644
index 11a14e0d..00000000
--- a/truffe2/accounting_tools/migrations/0006_auto__add_field_subventionline_order.py
+++ /dev/null
@@ -1,180 +0,0 @@
-# Python bytecode 2.7 (62211)
-# Embedded file name: /var/www/git-repo/truffe2/truffe2/accounting_tools/migrations/0006_auto__add_field_subventionline_order.py
-# Compiled at: 2015-07-04 20:37:00
-# Decompiled by https://python-decompiler.com
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-#this migration is a strange ghost, job is done in 0009, this is here for compat with old datas
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- pass
-
- def backwards(self, orm):
- pass
-
- models = {'accounting_core.accountingyear': {'Meta': {'object_name': 'AccountingYear'}, 'deleted': (
- 'django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': (
- 'django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': (
- 'django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': (
- 'django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': (
- 'django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': (
- 'django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})},
- 'accounting_tools.subvention': {'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'}, 'accounting_year': (
- 'django.db.models.fields.related.ForeignKey', [], {'to': "orm['accounting_core.AccountingYear']"}),
- 'amount_asked': (
- 'django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': (
- 'django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': (
- 'django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': (
- 'django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': (
- 'django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': (
- 'django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': (
- 'django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': (
- 'django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': (
- 'django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': (
- 'django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': (
- 'django.db.models.fields.related.ForeignKey', [], {'to': "orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': (
- 'django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': (
- 'django.db.models.fields.related.ForeignKey', [], {'to': "orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})},
- 'accounting_tools.subventionfile': {'Meta': {'object_name': 'SubventionFile'}, 'file': (
- 'django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': (
- 'django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': "orm['accounting_tools.Subvention']"}),
- 'upload_date': (
- 'django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': (
- 'django.db.models.fields.related.ForeignKey', [], {'to': "orm['users.TruffeUser']"})},
- 'accounting_tools.subventionline': {'Meta': {'object_name': 'SubventionLine'}, 'end_date': (
- 'django.db.models.fields.DateField', [], {}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': (
- 'django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': (
- 'django.db.models.fields.SmallIntegerField', [], {}),
- 'order': (
- 'django.db.models.fields.SmallIntegerField', [], {}),
- 'place': (
- 'django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': (
- 'django.db.models.fields.DateField', [], {}),
- 'subvention': (
- 'django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': "orm['accounting_tools.Subvention']"})},
- 'accounting_tools.subventionlogging': {'Meta': {'object_name': 'SubventionLogging'}, 'extra_data': (
- 'django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': (
- 'django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': "orm['accounting_tools.Subvention']"}),
- 'what': (
- 'django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': (
- 'django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': (
- 'django.db.models.fields.related.ForeignKey', [], {'to': "orm['users.TruffeUser']"})},
- 'auth.group': {'Meta': {'object_name': 'Group'}, 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': (
- 'django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': (
- 'django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})},
- 'auth.permission': {'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'}, 'codename': (
- 'django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': (
- 'django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': (
- 'django.db.models.fields.CharField', [], {'max_length': '50'})},
- 'contenttypes.contenttype': {'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, 'app_label': (
- 'django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': (
- 'django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': (
- 'django.db.models.fields.CharField', [], {'max_length': '100'})},
- 'units.unit': {'Meta': {'object_name': 'Unit'}, 'deleted': (
- 'django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': (
- 'django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': (
- 'django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': (
- 'django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': (
- 'django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': (
- 'django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': (
- 'django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': (
- 'django.db.models.fields.related.ForeignKey', [], {'to': "orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': (
- 'django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})},
- 'users.truffeuser': {'Meta': {'object_name': 'TruffeUser'}, 'adresse': (
- 'django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': (
- 'django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': (
- 'django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': (
- 'django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': (
- 'django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': (
- 'django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': (
- 'django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': "orm['auth.Group']"}),
- 'iban_ou_ccp': (
- 'django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'id': (
- 'django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': (
- 'django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': (
- 'django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': (
- 'django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': (
- 'django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': (
- 'django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': (
- 'django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': (
- 'django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': (
- 'django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': "orm['auth.Permission']"}),
- 'username': (
- 'django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})}}
- complete_apps = [
- 'accounting_tools']
diff --git a/truffe2/accounting_tools/migrations/0006_auto__add_invoiceline.py b/truffe2/accounting_tools/migrations/0006_auto__add_invoiceline.py
deleted file mode 100644
index c4e2a766..00000000
--- a/truffe2/accounting_tools/migrations/0006_auto__add_invoiceline.py
+++ /dev/null
@@ -1,154 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'InvoiceLine'
- db.create_table(u'accounting_tools_invoiceline', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('invoice', self.gf('django.db.models.fields.related.ForeignKey')(related_name='lines', to=orm['accounting_tools.Invoice'])),
- ('label', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('value', self.gf('django.db.models.fields.DecimalField')(max_digits=20, decimal_places=2)),
- ))
- db.send_create_signal(u'accounting_tools', ['InvoiceLine'])
-
-
- def backwards(self, orm):
- # Deleting model 'InvoiceLine'
- db.delete_table(u'accounting_tools_invoiceline')
-
-
- models = {
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0007_auto__add_field_invoiceline_order.py b/truffe2/accounting_tools/migrations/0007_auto__add_field_invoiceline_order.py
deleted file mode 100644
index 4de57295..00000000
--- a/truffe2/accounting_tools/migrations/0007_auto__add_field_invoiceline_order.py
+++ /dev/null
@@ -1,151 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'InvoiceLine.order'
- db.add_column(u'accounting_tools_invoiceline', 'order',
- self.gf('django.db.models.fields.SmallIntegerField')(default=0),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'InvoiceLine.order'
- db.delete_column(u'accounting_tools_invoiceline', 'order')
-
-
- models = {
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0008_auto__add_field_invoice_costcenter.py b/truffe2/accounting_tools/migrations/0008_auto__add_field_invoice_costcenter.py
deleted file mode 100644
index 28a45e3a..00000000
--- a/truffe2/accounting_tools/migrations/0008_auto__add_field_invoice_costcenter.py
+++ /dev/null
@@ -1,162 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'Invoice.costcenter'
- db.add_column(u'accounting_tools_invoice', 'costcenter',
- self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['accounting_core.CostCenter']),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'Invoice.costcenter'
- db.delete_column(u'accounting_tools_invoice', 'costcenter_id')
-
-
- models = {
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0009_auto__add_subventionfile__add_field_subventionline_order.py b/truffe2/accounting_tools/migrations/0009_auto__add_subventionfile__add_field_subventionline_order.py
deleted file mode 100644
index 964b242d..00000000
--- a/truffe2/accounting_tools/migrations/0009_auto__add_subventionfile__add_field_subventionline_order.py
+++ /dev/null
@@ -1,184 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'SubventionFile'
- db.create_table(u'accounting_tools_subventionfile', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('upload_date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('uploader', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='files', null=True, to=orm['accounting_tools.Subvention'])),
- ('file', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
- ))
- db.send_create_signal(u'accounting_tools', ['SubventionFile'])
-
- # Adding field 'SubventionLine.order'
- db.add_column(u'accounting_tools_subventionline', 'order',
- self.gf('django.db.models.fields.SmallIntegerField')(default=0),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting model 'SubventionFile'
- db.delete_table(u'accounting_tools_subventionfile')
-
- # Deleting field 'SubventionLine.order'
- db.delete_column(u'accounting_tools_subventionline', 'order')
-
-
- models = {
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0010_auto__add_field_invoiceline_quantity__add_field_invoiceline_tva.py b/truffe2/accounting_tools/migrations/0010_auto__add_field_invoiceline_quantity__add_field_invoiceline_tva.py
deleted file mode 100644
index ba4190e6..00000000
--- a/truffe2/accounting_tools/migrations/0010_auto__add_field_invoiceline_quantity__add_field_invoiceline_tva.py
+++ /dev/null
@@ -1,181 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'InvoiceLine.quantity'
- db.add_column(u'accounting_tools_invoiceline', 'quantity',
- self.gf('django.db.models.fields.DecimalField')(default=1, max_digits=20, decimal_places=0),
- keep_default=False)
-
- # Adding field 'InvoiceLine.tva'
- db.add_column(u'accounting_tools_invoiceline', 'tva',
- self.gf('django.db.models.fields.DecimalField')(default=0, max_digits=20, decimal_places=2),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'InvoiceLine.quantity'
- db.delete_column(u'accounting_tools_invoiceline', 'quantity')
-
- # Deleting field 'InvoiceLine.tva'
- db.delete_column(u'accounting_tools_invoiceline', 'tva')
-
-
- models = {
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0011_auto__add_invoicetag.py b/truffe2/accounting_tools/migrations/0011_auto__add_invoicetag.py
deleted file mode 100644
index a2f00dce..00000000
--- a/truffe2/accounting_tools/migrations/0011_auto__add_invoicetag.py
+++ /dev/null
@@ -1,182 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'InvoiceTag'
- db.create_table(u'accounting_tools_invoicetag', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('tag', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='tags', to=orm['accounting_tools.Invoice'])),
- ))
- db.send_create_signal(u'accounting_tools', ['InvoiceTag'])
-
-
- def backwards(self, orm):
- # Deleting model 'InvoiceTag'
- db.delete_table(u'accounting_tools_invoicetag')
-
-
- models = {
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0012_auto__add_field_invoice_custom_bvr_number__add_field_invoice_address__.py b/truffe2/accounting_tools/migrations/0012_auto__add_field_invoice_custom_bvr_number__add_field_invoice_address__.py
deleted file mode 100644
index 5e684fc9..00000000
--- a/truffe2/accounting_tools/migrations/0012_auto__add_field_invoice_custom_bvr_number__add_field_invoice_address__.py
+++ /dev/null
@@ -1,261 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'Invoice.custom_bvr_number'
- db.add_column(u'accounting_tools_invoice', 'custom_bvr_number',
- self.gf('django.db.models.fields.CharField')(max_length=59, null=True, blank=True),
- keep_default=False)
-
- # Adding field 'Invoice.address'
- db.add_column(u'accounting_tools_invoice', 'address',
- self.gf('django.db.models.fields.TextField')(null=True, blank=True),
- keep_default=False)
-
- # Adding field 'Invoice.date_and_place'
- db.add_column(u'accounting_tools_invoice', 'date_and_place',
- self.gf('django.db.models.fields.CharField')(max_length=512, null=True, blank=True),
- keep_default=False)
-
- # Adding field 'Invoice.preface'
- db.add_column(u'accounting_tools_invoice', 'preface',
- self.gf('django.db.models.fields.TextField')(null=True, blank=True),
- keep_default=False)
-
- # Adding field 'Invoice.ending'
- db.add_column(u'accounting_tools_invoice', 'ending',
- self.gf('django.db.models.fields.CharField')(default='', max_length=1024, null=True, blank=True),
- keep_default=False)
-
- # Adding field 'Invoice.display_bvr'
- db.add_column(u'accounting_tools_invoice', 'display_bvr',
- self.gf('django.db.models.fields.BooleanField')(default=True),
- keep_default=False)
-
- # Adding field 'Invoice.display_account'
- db.add_column(u'accounting_tools_invoice', 'display_account',
- self.gf('django.db.models.fields.BooleanField')(default=True),
- keep_default=False)
-
- # Adding field 'Invoice.greetins'
- db.add_column(u'accounting_tools_invoice', 'greetins',
- self.gf('django.db.models.fields.CharField')(default='', max_length=1024, null=True, blank=True),
- keep_default=False)
-
- # Adding field 'Invoice.sign'
- db.add_column(u'accounting_tools_invoice', 'sign',
- self.gf('django.db.models.fields.CharField')(max_length=512, null=True, blank=True),
- keep_default=False)
-
- # Adding field 'Invoice.annex'
- db.add_column(u'accounting_tools_invoice', 'annex',
- self.gf('django.db.models.fields.BooleanField')(default=False),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'Invoice.custom_bvr_number'
- db.delete_column(u'accounting_tools_invoice', 'custom_bvr_number')
-
- # Deleting field 'Invoice.address'
- db.delete_column(u'accounting_tools_invoice', 'address')
-
- # Deleting field 'Invoice.date_and_place'
- db.delete_column(u'accounting_tools_invoice', 'date_and_place')
-
- # Deleting field 'Invoice.preface'
- db.delete_column(u'accounting_tools_invoice', 'preface')
-
- # Deleting field 'Invoice.ending'
- db.delete_column(u'accounting_tools_invoice', 'ending')
-
- # Deleting field 'Invoice.display_bvr'
- db.delete_column(u'accounting_tools_invoice', 'display_bvr')
-
- # Deleting field 'Invoice.display_account'
- db.delete_column(u'accounting_tools_invoice', 'display_account')
-
- # Deleting field 'Invoice.greetins'
- db.delete_column(u'accounting_tools_invoice', 'greetins')
-
- # Deleting field 'Invoice.sign'
- db.delete_column(u'accounting_tools_invoice', 'sign')
-
- # Deleting field 'Invoice.annex'
- db.delete_column(u'accounting_tools_invoice', 'annex')
-
-
- models = {
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetins': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0012_auto__add_internaltransfer__add_internaltransferlogging__add_internalt.py b/truffe2/accounting_tools/migrations/0012_auto__add_internaltransfer__add_internaltransferlogging__add_internalt.py
deleted file mode 100644
index fdf00ee1..00000000
--- a/truffe2/accounting_tools/migrations/0012_auto__add_internaltransfer__add_internaltransferlogging__add_internalt.py
+++ /dev/null
@@ -1,261 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'InternalTransfer'
- db.create_table(u'accounting_tools_internaltransfer', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
- ('description', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
- ('status', self.gf('django.db.models.fields.CharField')(default='0_draft', max_length=255)),
- ('accounting_year', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_core.AccountingYear'])),
- ('account', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_core.Account'])),
- ('cost_center_from', self.gf('django.db.models.fields.related.ForeignKey')(related_name='internal_transfer_from', to=orm['accounting_core.CostCenter'])),
- ('cost_center_to', self.gf('django.db.models.fields.related.ForeignKey')(related_name='internal_transfer_to', to=orm['accounting_core.CostCenter'])),
- ))
- db.send_create_signal(u'accounting_tools', ['InternalTransfer'])
-
- # Adding model 'InternalTransferLogging'
- db.create_table(u'accounting_tools_internaltransferlogging', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('extra_data', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('what', self.gf('django.db.models.fields.CharField')(max_length=64)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='logs', to=orm['accounting_tools.InternalTransfer'])),
- ))
- db.send_create_signal(u'accounting_tools', ['InternalTransferLogging'])
-
- # Adding model 'InternalTransferTag'
- db.create_table(u'accounting_tools_internaltransfertag', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('tag', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='tags', to=orm['accounting_tools.InternalTransfer'])),
- ))
- db.send_create_signal(u'accounting_tools', ['InternalTransferTag'])
-
-
- def backwards(self, orm):
- # Deleting model 'InternalTransfer'
- db.delete_table(u'accounting_tools_internaltransfer')
-
- # Deleting model 'InternalTransferLogging'
- db.delete_table(u'accounting_tools_internaltransferlogging')
-
- # Deleting model 'InternalTransferTag'
- db.delete_table(u'accounting_tools_internaltransfertag')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0013_auto__add_field_internaltransfer_amount.py b/truffe2/accounting_tools/migrations/0013_auto__add_field_internaltransfer_amount.py
deleted file mode 100644
index 2215fc28..00000000
--- a/truffe2/accounting_tools/migrations/0013_auto__add_field_internaltransfer_amount.py
+++ /dev/null
@@ -1,228 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'InternalTransfer.amount'
- db.add_column(u'accounting_tools_internaltransfer', 'amount',
- self.gf('django.db.models.fields.DecimalField')(default=0, max_digits=20, decimal_places=2),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'InternalTransfer.amount'
- db.delete_column(u'accounting_tools_internaltransfer', 'amount')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0013_auto__add_field_invoiceline_value_ttc.py b/truffe2/accounting_tools/migrations/0013_auto__add_field_invoiceline_value_ttc.py
deleted file mode 100644
index d2c9672e..00000000
--- a/truffe2/accounting_tools/migrations/0013_auto__add_field_invoiceline_value_ttc.py
+++ /dev/null
@@ -1,190 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'InvoiceLine.value_ttc'
- db.add_column(u'accounting_tools_invoiceline', 'value_ttc',
- self.gf('django.db.models.fields.DecimalField')(default=42, max_digits=20, decimal_places=2),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'InvoiceLine.value_ttc'
- db.delete_column(u'accounting_tools_invoiceline', 'value_ttc')
-
-
- models = {
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetins': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0014_auto__add_field_invoice_status.py b/truffe2/accounting_tools/migrations/0014_auto__add_field_invoice_status.py
deleted file mode 100644
index 315aa293..00000000
--- a/truffe2/accounting_tools/migrations/0014_auto__add_field_invoice_status.py
+++ /dev/null
@@ -1,191 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'Invoice.status'
- db.add_column(u'accounting_tools_invoice', 'status',
- self.gf('django.db.models.fields.CharField')(default='0_preparing', max_length=255),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'Invoice.status'
- db.delete_column(u'accounting_tools_invoice', 'status')
-
-
- models = {
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetins': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0014_auto__add_withdrawallogging__add_withdrawal__add_withdrawaltag__add_wi.py b/truffe2/accounting_tools/migrations/0014_auto__add_withdrawallogging__add_withdrawal__add_withdrawaltag__add_wi.py
deleted file mode 100644
index ec2b126d..00000000
--- a/truffe2/accounting_tools/migrations/0014_auto__add_withdrawallogging__add_withdrawal__add_withdrawaltag__add_wi.py
+++ /dev/null
@@ -1,314 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'WithdrawalLogging'
- db.create_table(u'accounting_tools_withdrawallogging', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('extra_data', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('what', self.gf('django.db.models.fields.CharField')(max_length=64)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='logs', to=orm['accounting_tools.Withdrawal'])),
- ))
- db.send_create_signal(u'accounting_tools', ['WithdrawalLogging'])
-
- # Adding model 'Withdrawal'
- db.create_table(u'accounting_tools_withdrawal', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
- ('description', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
- ('amount', self.gf('django.db.models.fields.DecimalField')(max_digits=20, decimal_places=2)),
- ('desired_date', self.gf('django.db.models.fields.DateField')()),
- ('withdrawn_date', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
- ('status', self.gf('django.db.models.fields.CharField')(default='0_draft', max_length=255)),
- ('accounting_year', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_core.AccountingYear'])),
- ('costcenter', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_core.CostCenter'])),
- ('unit', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['units.Unit'])),
- ))
- db.send_create_signal(u'accounting_tools', ['Withdrawal'])
-
- # Adding model 'WithdrawalTag'
- db.create_table(u'accounting_tools_withdrawaltag', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('tag', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='tags', to=orm['accounting_tools.Withdrawal'])),
- ))
- db.send_create_signal(u'accounting_tools', ['WithdrawalTag'])
-
- # Adding model 'WithdrawalFile'
- db.create_table(u'accounting_tools_withdrawalfile', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('upload_date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('uploader', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='files', null=True, to=orm['accounting_tools.Withdrawal'])),
- ('file', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
- ))
- db.send_create_signal(u'accounting_tools', ['WithdrawalFile'])
-
-
- def backwards(self, orm):
- # Deleting model 'WithdrawalLogging'
- db.delete_table(u'accounting_tools_withdrawallogging')
-
- # Deleting model 'Withdrawal'
- db.delete_table(u'accounting_tools_withdrawal')
-
- # Deleting model 'WithdrawalTag'
- db.delete_table(u'accounting_tools_withdrawaltag')
-
- # Deleting model 'WithdrawalFile'
- db.delete_table(u'accounting_tools_withdrawalfile')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0015_auto__add_internaltransfer__add_internaltransferlogging__add_internalt.py b/truffe2/accounting_tools/migrations/0015_auto__add_internaltransfer__add_internaltransferlogging__add_internalt.py
deleted file mode 100644
index dfb76137..00000000
--- a/truffe2/accounting_tools/migrations/0015_auto__add_internaltransfer__add_internaltransferlogging__add_internalt.py
+++ /dev/null
@@ -1,255 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Deleting field 'Invoice.greetins'
- db.delete_column(u'accounting_tools_invoice', 'greetins')
-
- # Adding field 'Invoice.greetings'
- db.add_column(u'accounting_tools_invoice', 'greetings',
- self.gf('django.db.models.fields.CharField')(default='', max_length=1024, null=True, blank=True),
- keep_default=False)
-
-
- # Changing field 'Invoice.ending'
- db.alter_column(u'accounting_tools_invoice', 'ending', self.gf('django.db.models.fields.TextField')(max_length=1024, null=True))
-
- def backwards(self, orm):
-
- # Adding field 'Invoice.greetins'
- db.add_column(u'accounting_tools_invoice', 'greetins',
- self.gf('django.db.models.fields.CharField')(default='', max_length=1024, null=True, blank=True),
- keep_default=False)
-
- # Deleting field 'Invoice.greetings'
- db.delete_column(u'accounting_tools_invoice', 'greetings')
-
-
- # Changing field 'Invoice.ending'
- db.alter_column(u'accounting_tools_invoice', 'ending', self.gf('django.db.models.fields.CharField')(max_length=1024, null=True))
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
diff --git a/truffe2/accounting_tools/migrations/0016_auto__chg_field_subvention_mobility_given__chg_field_subvention_amount.py b/truffe2/accounting_tools/migrations/0016_auto__chg_field_subvention_mobility_given__chg_field_subvention_amount.py
deleted file mode 100644
index 63702bb0..00000000
--- a/truffe2/accounting_tools/migrations/0016_auto__chg_field_subvention_mobility_given__chg_field_subvention_amount.py
+++ /dev/null
@@ -1,256 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
-
- # Changing field 'Subvention.mobility_given'
- db.alter_column(u'accounting_tools_subvention', 'mobility_given', self.gf('django.db.models.fields.IntegerField')(null=True))
-
- # Changing field 'Subvention.amount_given'
- db.alter_column(u'accounting_tools_subvention', 'amount_given', self.gf('django.db.models.fields.IntegerField')(null=True))
-
- # Changing field 'Subvention.mobility_asked'
- db.alter_column(u'accounting_tools_subvention', 'mobility_asked', self.gf('django.db.models.fields.IntegerField')(null=True))
-
- # Changing field 'Subvention.amount_asked'
- db.alter_column(u'accounting_tools_subvention', 'amount_asked', self.gf('django.db.models.fields.IntegerField')())
-
- def backwards(self, orm):
-
- # Changing field 'Subvention.mobility_given'
- db.alter_column(u'accounting_tools_subvention', 'mobility_given', self.gf('django.db.models.fields.SmallIntegerField')(null=True))
-
- # Changing field 'Subvention.amount_given'
- db.alter_column(u'accounting_tools_subvention', 'amount_given', self.gf('django.db.models.fields.SmallIntegerField')(null=True))
-
- # Changing field 'Subvention.mobility_asked'
- db.alter_column(u'accounting_tools_subvention', 'mobility_asked', self.gf('django.db.models.fields.SmallIntegerField')(null=True))
-
- # Changing field 'Subvention.amount_asked'
- db.alter_column(u'accounting_tools_subvention', 'amount_asked', self.gf('django.db.models.fields.SmallIntegerField')())
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0017_auto__add_withdrawallogging__add_linkedinfo__add_withdrawal__add_withd.py b/truffe2/accounting_tools/migrations/0017_auto__add_withdrawallogging__add_linkedinfo__add_withdrawal__add_withd.py
deleted file mode 100644
index a70461bf..00000000
--- a/truffe2/accounting_tools/migrations/0017_auto__add_withdrawallogging__add_linkedinfo__add_withdrawal__add_withd.py
+++ /dev/null
@@ -1,355 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # # Adding model 'WithdrawalLogging'
- # db.create_table(u'accounting_tools_withdrawallogging', (
- # (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- # ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- # ('extra_data', self.gf('django.db.models.fields.TextField')(blank=True)),
- # ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- # ('what', self.gf('django.db.models.fields.CharField')(max_length=64)),
- # ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='logs', to=orm['accounting_tools.Withdrawal'])),
- # ))
- # db.send_create_signal(u'accounting_tools', ['WithdrawalLogging'])
-
- # Adding model 'LinkedInfo'
- db.create_table(u'accounting_tools_linkedinfo', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
- ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
- ('first_name', self.gf('django.db.models.fields.CharField')(max_length=50)),
- ('last_name', self.gf('django.db.models.fields.CharField')(max_length=50)),
- ('address', self.gf('django.db.models.fields.TextField')()),
- ('phone', self.gf('django.db.models.fields.CharField')(max_length=20)),
- ('bank', self.gf('django.db.models.fields.CharField')(max_length=128)),
- ('iban_ccp', self.gf('django.db.models.fields.CharField')(max_length=128)),
- ))
- db.send_create_signal(u'accounting_tools', ['LinkedInfo'])
-
- # # Adding model 'Withdrawal'
- # db.create_table(u'accounting_tools_withdrawal', (
- # (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- # ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
- # ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
- # ('description', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
- # ('amount', self.gf('django.db.models.fields.DecimalField')(max_digits=20, decimal_places=2)),
- # ('desired_date', self.gf('django.db.models.fields.DateField')()),
- # ('withdrawn_date', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
- # ('status', self.gf('django.db.models.fields.CharField')(default='0_draft', max_length=255)),
- # ('accounting_year', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_core.AccountingYear'])),
- # ('costcenter', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_core.CostCenter'])),
- # ('unit', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['units.Unit'])),
- # ))
- # db.send_create_signal(u'accounting_tools', ['Withdrawal'])
- #
- # # Adding model 'WithdrawalTag'
- # db.create_table(u'accounting_tools_withdrawaltag', (
- # (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- # ('tag', self.gf('django.db.models.fields.CharField')(max_length=255)),
- # ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='tags', to=orm['accounting_tools.Withdrawal'])),
- # ))
- # db.send_create_signal(u'accounting_tools', ['WithdrawalTag'])
- #
- # # Adding model 'WithdrawalFile'
- # db.create_table(u'accounting_tools_withdrawalfile', (
- # (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- # ('upload_date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- # ('uploader', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- # ('object', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='files', null=True, to=orm['accounting_tools.Withdrawal'])),
- # ('file', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
- # ))
- # db.send_create_signal(u'accounting_tools', ['WithdrawalFile'])
-
-
- def backwards(self, orm):
- # Deleting model 'WithdrawalLogging'
- db.delete_table(u'accounting_tools_withdrawallogging')
-
- # Deleting model 'LinkedInfo'
- db.delete_table(u'accounting_tools_linkedinfo')
-
- # Deleting model 'Withdrawal'
- db.delete_table(u'accounting_tools_withdrawal')
-
- # Deleting model 'WithdrawalTag'
- db.delete_table(u'accounting_tools_withdrawaltag')
-
- # Deleting model 'WithdrawalFile'
- db.delete_table(u'accounting_tools_withdrawalfile')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
diff --git a/truffe2/accounting_tools/migrations/0018_auto__add_expenseclaim__add_expenseclaimline__add_expenseclaimlogging_.py b/truffe2/accounting_tools/migrations/0018_auto__add_expenseclaim__add_expenseclaimline__add_expenseclaimlogging_.py
deleted file mode 100644
index a9300cae..00000000
--- a/truffe2/accounting_tools/migrations/0018_auto__add_expenseclaim__add_expenseclaimline__add_expenseclaimlogging_.py
+++ /dev/null
@@ -1,381 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'ExpenseClaim'
- db.create_table(u'accounting_tools_expenseclaim', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
- ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('nb_just', self.gf('django.db.models.fields.IntegerField')(default=0)),
- ('status', self.gf('django.db.models.fields.CharField')(default='0_draft', max_length=255)),
- ('accounting_year', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_core.AccountingYear'])),
- ('costcenter', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_core.CostCenter'])),
- ('unit', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['units.Unit'])),
- ))
- db.send_create_signal(u'accounting_tools', ['ExpenseClaim'])
-
- # Adding model 'ExpenseClaimLine'
- db.create_table(u'accounting_tools_expenseclaimline', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('order', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),
- ('expense_claim', self.gf('django.db.models.fields.related.ForeignKey')(related_name='lines', to=orm['accounting_tools.ExpenseClaim'])),
- ('label', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('proof', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('value', self.gf('django.db.models.fields.DecimalField')(max_digits=20, decimal_places=2)),
- ('tva', self.gf('django.db.models.fields.DecimalField')(max_digits=20, decimal_places=2)),
- ('value_ttc', self.gf('django.db.models.fields.DecimalField')(max_digits=20, decimal_places=2)),
- ))
- db.send_create_signal(u'accounting_tools', ['ExpenseClaimLine'])
-
- # Adding model 'ExpenseClaimLogging'
- db.create_table(u'accounting_tools_expenseclaimlogging', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('extra_data', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('what', self.gf('django.db.models.fields.CharField')(max_length=64)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='logs', to=orm['accounting_tools.ExpenseClaim'])),
- ))
- db.send_create_signal(u'accounting_tools', ['ExpenseClaimLogging'])
-
- # Adding model 'ExpenseClaimFile'
- db.create_table(u'accounting_tools_expenseclaimfile', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('upload_date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('uploader', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='files', null=True, to=orm['accounting_tools.ExpenseClaim'])),
- ('file', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
- ))
- db.send_create_signal(u'accounting_tools', ['ExpenseClaimFile'])
-
-
- def backwards(self, orm):
- # Deleting model 'ExpenseClaim'
- db.delete_table(u'accounting_tools_expenseclaim')
-
- # Deleting model 'ExpenseClaimLine'
- db.delete_table(u'accounting_tools_expenseclaimline')
-
- # Deleting model 'ExpenseClaimLogging'
- db.delete_table(u'accounting_tools_expenseclaimlogging')
-
- # Deleting model 'ExpenseClaimFile'
- db.delete_table(u'accounting_tools_expenseclaimfile')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'nb_just': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0019_auto__del_field_expenseclaim_nb_just__add_field_expenseclaim_nb_proofs.py b/truffe2/accounting_tools/migrations/0019_auto__del_field_expenseclaim_nb_just__add_field_expenseclaim_nb_proofs.py
deleted file mode 100644
index 94824f5a..00000000
--- a/truffe2/accounting_tools/migrations/0019_auto__del_field_expenseclaim_nb_just__add_field_expenseclaim_nb_proofs.py
+++ /dev/null
@@ -1,336 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Renaming field 'ExpenseClaim.nb_proofs'
- db.rename_column(u'accounting_tools_expenseclaim', 'nb_just', 'nb_proofs')
-
- # Adding field 'ExpenseClaim.comment'
- db.add_column(u'accounting_tools_expenseclaim', 'comment',
- self.gf('django.db.models.fields.TextField')(null=True, blank=True),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Renaming field 'ExpenseClaim.nb_just'
- db.rename_column(u'accounting_tools_expenseclaim', 'nb_proofs', 'nb_just')
-
- # Deleting field 'ExpenseClaim.comment'
- db.delete_column(u'accounting_tools_expenseclaim', 'comment')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0020_auto__add_field_expenseclaimline_account.py b/truffe2/accounting_tools/migrations/0020_auto__add_field_expenseclaimline_account.py
deleted file mode 100644
index d5ac09c1..00000000
--- a/truffe2/accounting_tools/migrations/0020_auto__add_field_expenseclaimline_account.py
+++ /dev/null
@@ -1,331 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'ExpenseClaimLine.account'
- db.add_column(u'accounting_tools_expenseclaimline', 'account',
- self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['accounting_core.Account']),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'ExpenseClaimLine.account'
- db.delete_column(u'accounting_tools_expenseclaimline', 'account_id')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0021_auto__add_cashbookfile__add_cashbook__add_cashbooklogging__add_cashboo.py b/truffe2/accounting_tools/migrations/0021_auto__add_cashbookfile__add_cashbook__add_cashbooklogging__add_cashboo.py
deleted file mode 100644
index cae65025..00000000
--- a/truffe2/accounting_tools/migrations/0021_auto__add_cashbookfile__add_cashbook__add_cashbooklogging__add_cashboo.py
+++ /dev/null
@@ -1,435 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'CashBookFile'
- db.create_table(u'accounting_tools_cashbookfile', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('upload_date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('uploader', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='files', null=True, to=orm['accounting_tools.CashBook'])),
- ('file', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
- ))
- db.send_create_signal(u'accounting_tools', ['CashBookFile'])
-
- # Adding model 'CashBook'
- db.create_table(u'accounting_tools_cashbook', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
- ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('nb_proofs', self.gf('django.db.models.fields.IntegerField')(default=0)),
- ('comment', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
- ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
- ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
- ('status', self.gf('django.db.models.fields.CharField')(default='0_draft', max_length=255)),
- ('accounting_year', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_core.AccountingYear'])),
- ('costcenter', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_core.CostCenter'])),
- ('unit', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['units.Unit'])),
- ))
- db.send_create_signal(u'accounting_tools', ['CashBook'])
-
- # Adding model 'CashBookLogging'
- db.create_table(u'accounting_tools_cashbooklogging', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('extra_data', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('what', self.gf('django.db.models.fields.CharField')(max_length=64)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='logs', to=orm['accounting_tools.CashBook'])),
- ))
- db.send_create_signal(u'accounting_tools', ['CashBookLogging'])
-
- # Adding model 'CashBookLine'
- db.create_table(u'accounting_tools_cashbookline', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('order', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),
- ('cashbook', self.gf('django.db.models.fields.related.ForeignKey')(related_name='lines', to=orm['accounting_tools.CashBook'])),
- ('date', self.gf('django.db.models.fields.DateField')()),
- ('helper', self.gf('django.db.models.fields.CharField')(max_length=15)),
- ('label', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('proof', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('account', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_core.Account'])),
- ('value', self.gf('django.db.models.fields.DecimalField')(max_digits=20, decimal_places=2)),
- ('tva', self.gf('django.db.models.fields.DecimalField')(max_digits=20, decimal_places=2)),
- ('value_ttc', self.gf('django.db.models.fields.DecimalField')(max_digits=20, decimal_places=2)),
- ))
- db.send_create_signal(u'accounting_tools', ['CashBookLine'])
-
-
- def backwards(self, orm):
- # Deleting model 'CashBookFile'
- db.delete_table(u'accounting_tools_cashbookfile')
-
- # Deleting model 'CashBook'
- db.delete_table(u'accounting_tools_cashbook')
-
- # Deleting model 'CashBookLogging'
- db.delete_table(u'accounting_tools_cashbooklogging')
-
- # Deleting model 'CashBookLine'
- db.delete_table(u'accounting_tools_cashbookline')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0021_auto__add_field_linkedinfo_user_pk.py b/truffe2/accounting_tools/migrations/0021_auto__add_field_linkedinfo_user_pk.py
deleted file mode 100644
index 6a57bd00..00000000
--- a/truffe2/accounting_tools/migrations/0021_auto__add_field_linkedinfo_user_pk.py
+++ /dev/null
@@ -1,332 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'LinkedInfo.user_pk'
- db.add_column(u'accounting_tools_linkedinfo', 'user_pk',
- self.gf('django.db.models.fields.PositiveIntegerField')(default=1),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'LinkedInfo.user_pk'
- db.delete_column(u'accounting_tools_linkedinfo', 'user_pk')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0022_auto__chg_field_cashbook_object_id__chg_field_cashbook_content_type.py b/truffe2/accounting_tools/migrations/0022_auto__chg_field_cashbook_object_id__chg_field_cashbook_content_type.py
deleted file mode 100644
index 6245465b..00000000
--- a/truffe2/accounting_tools/migrations/0022_auto__chg_field_cashbook_object_id__chg_field_cashbook_content_type.py
+++ /dev/null
@@ -1,381 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
-
- # Changing field 'CashBook.object_id'
- db.alter_column(u'accounting_tools_cashbook', 'object_id', self.gf('django.db.models.fields.PositiveIntegerField')(null=True))
-
- # Changing field 'CashBook.content_type'
- db.alter_column(u'accounting_tools_cashbook', 'content_type_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'], null=True))
-
- def backwards(self, orm):
-
- # Changing field 'CashBook.object_id'
- db.alter_column(u'accounting_tools_cashbook', 'object_id', self.gf('django.db.models.fields.PositiveIntegerField')(default=1))
-
- # Changing field 'CashBook.content_type'
- db.alter_column(u'accounting_tools_cashbook', 'content_type_id', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['contenttypes.ContentType']))
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0023_auto__add_field_withdrawal_user.py b/truffe2/accounting_tools/migrations/0023_auto__add_field_withdrawal_user.py
deleted file mode 100644
index 63d9365e..00000000
--- a/truffe2/accounting_tools/migrations/0023_auto__add_field_withdrawal_user.py
+++ /dev/null
@@ -1,378 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'Withdrawal.user'
- db.add_column(u'accounting_tools_withdrawal', 'user',
- self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['users.TruffeUser']),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'Withdrawal.user'
- db.delete_column(u'accounting_tools_withdrawal', 'user_id')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0024_auto__del_unique_internaltransfer_name__add_field_linkedinfo_user_pk__.py b/truffe2/accounting_tools/migrations/0024_auto__del_unique_internaltransfer_name__add_field_linkedinfo_user_pk__.py
deleted file mode 100644
index fd5aa0d8..00000000
--- a/truffe2/accounting_tools/migrations/0024_auto__del_unique_internaltransfer_name__add_field_linkedinfo_user_pk__.py
+++ /dev/null
@@ -1,394 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Removing unique constraint on 'Withdrawal', fields ['name']
- db.delete_unique(u'accounting_tools_withdrawal', ['name'])
-
- # Removing unique constraint on 'CashBook', fields ['name']
- db.delete_unique(u'accounting_tools_cashbook', ['name'])
-
- # Removing unique constraint on 'ExpenseClaim', fields ['name']
- db.delete_unique(u'accounting_tools_expenseclaim', ['name'])
-
- # Removing unique constraint on 'InternalTransfer', fields ['name']
- db.delete_unique(u'accounting_tools_internaltransfer', ['name'])
-
- def backwards(self, orm):
- # Adding unique constraint on 'InternalTransfer', fields ['name']
- db.create_unique(u'accounting_tools_internaltransfer', ['name'])
-
- # Adding unique constraint on 'ExpenseClaim', fields ['name']
- db.create_unique(u'accounting_tools_expenseclaim', ['name'])
-
- # Adding unique constraint on 'CashBook', fields ['name']
- db.create_unique(u'accounting_tools_cashbook', ['name'])
-
- # Adding unique constraint on 'Withdrawal', fields ['name']
- db.create_unique(u'accounting_tools_withdrawal', ['name'])
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0025_auto__del_field_expenseclaim_unit.py b/truffe2/accounting_tools/migrations/0025_auto__del_field_expenseclaim_unit.py
deleted file mode 100644
index a24eff8d..00000000
--- a/truffe2/accounting_tools/migrations/0025_auto__del_field_expenseclaim_unit.py
+++ /dev/null
@@ -1,379 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Deleting field 'ExpenseClaim.unit'
- db.delete_column(u'accounting_tools_expenseclaim', 'unit_id')
-
-
- def backwards(self, orm):
- # Adding field 'ExpenseClaim.unit'
- db.add_column(u'accounting_tools_expenseclaim', 'unit',
- self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['units.Unit']),
- keep_default=False)
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0026_auto__del_field_invoice_unit__del_field_cashbook_unit__del_field_withd.py b/truffe2/accounting_tools/migrations/0026_auto__del_field_invoice_unit__del_field_cashbook_unit__del_field_withd.py
deleted file mode 100644
index 4ac6c95e..00000000
--- a/truffe2/accounting_tools/migrations/0026_auto__del_field_invoice_unit__del_field_cashbook_unit__del_field_withd.py
+++ /dev/null
@@ -1,392 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Deleting field 'Invoice.unit'
- db.delete_column(u'accounting_tools_invoice', 'unit_id')
-
- # Deleting field 'CashBook.unit'
- db.delete_column(u'accounting_tools_cashbook', 'unit_id')
-
- # Deleting field 'Withdrawal.unit'
- db.delete_column(u'accounting_tools_withdrawal', 'unit_id')
-
-
- def backwards(self, orm):
- # Adding field 'Invoice.unit'
- db.add_column(u'accounting_tools_invoice', 'unit',
- self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['units.Unit']),
- keep_default=False)
-
- # Adding field 'CashBook.unit'
- db.add_column(u'accounting_tools_cashbook', 'unit',
- self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['units.Unit']),
- keep_default=False)
-
- # Adding field 'Withdrawal.unit'
- db.add_column(u'accounting_tools_withdrawal', 'unit',
- self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['units.Unit']),
- keep_default=False)
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0027_auto__chg_field_invoice_sign.py b/truffe2/accounting_tools/migrations/0027_auto__chg_field_invoice_sign.py
deleted file mode 100644
index e1b8cfa1..00000000
--- a/truffe2/accounting_tools/migrations/0027_auto__chg_field_invoice_sign.py
+++ /dev/null
@@ -1,375 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
-
- # Changing field 'Invoice.sign'
- db.alter_column(u'accounting_tools_invoice', 'sign', self.gf('django.db.models.fields.TextField')(null=True))
-
- def backwards(self, orm):
-
- # Changing field 'Invoice.sign'
- db.alter_column(u'accounting_tools_invoice', 'sign', self.gf('django.db.models.fields.CharField')(max_length=512, null=True))
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0028_auto__add_field_subvention_linked_budget.py b/truffe2/accounting_tools/migrations/0028_auto__add_field_subvention_linked_budget.py
deleted file mode 100644
index 221e835c..00000000
--- a/truffe2/accounting_tools/migrations/0028_auto__add_field_subvention_linked_budget.py
+++ /dev/null
@@ -1,389 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'Subvention.linked_budget'
- db.add_column(u'accounting_tools_subvention', 'linked_budget',
- self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_main.Budget'], null=True),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'Subvention.linked_budget'
- db.delete_column(u'accounting_tools_subvention', 'linked_budget_id')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_main.budget': {
- 'Meta': {'object_name': 'Budget'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'linked_budget': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_main.Budget']", 'null': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.SmallIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0029_auto__chg_field_expenseclaim_nb_proofs__chg_field_subventionline_nb_sp.py b/truffe2/accounting_tools/migrations/0029_auto__chg_field_expenseclaim_nb_proofs__chg_field_subventionline_nb_sp.py
deleted file mode 100644
index d42ef4ed..00000000
--- a/truffe2/accounting_tools/migrations/0029_auto__chg_field_expenseclaim_nb_proofs__chg_field_subventionline_nb_sp.py
+++ /dev/null
@@ -1,399 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
-
- # Changing field 'ExpenseClaim.nb_proofs'
- db.alter_column(u'accounting_tools_expenseclaim', 'nb_proofs', self.gf('django.db.models.fields.PositiveIntegerField')())
-
- # Changing field 'SubventionLine.nb_spec'
- db.alter_column(u'accounting_tools_subventionline', 'nb_spec', self.gf('django.db.models.fields.PositiveIntegerField')())
-
- # Changing field 'CashBook.nb_proofs'
- db.alter_column(u'accounting_tools_cashbook', 'nb_proofs', self.gf('django.db.models.fields.PositiveIntegerField')())
-
- def backwards(self, orm):
-
- # Changing field 'ExpenseClaim.nb_proofs'
- db.alter_column(u'accounting_tools_expenseclaim', 'nb_proofs', self.gf('django.db.models.fields.IntegerField')())
-
- # Changing field 'SubventionLine.nb_spec'
- db.alter_column(u'accounting_tools_subventionline', 'nb_spec', self.gf('django.db.models.fields.SmallIntegerField')())
-
- # Changing field 'CashBook.nb_proofs'
- db.alter_column(u'accounting_tools_cashbook', 'nb_proofs', self.gf('django.db.models.fields.IntegerField')())
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_main.budget': {
- 'Meta': {'object_name': 'Budget'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'linked_budget': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_main.Budget']", 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0030_auto__add_invoiceviews__add_withdrawalviews__add_expenseclaimviews__ad.py b/truffe2/accounting_tools/migrations/0030_auto__add_invoiceviews__add_withdrawalviews__add_expenseclaimviews__ad.py
deleted file mode 100644
index 7b24d119..00000000
--- a/truffe2/accounting_tools/migrations/0030_auto__add_invoiceviews__add_withdrawalviews__add_expenseclaimviews__ad.py
+++ /dev/null
@@ -1,496 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'InvoiceViews'
- db.create_table(u'accounting_tools_invoiceviews', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='views', to=orm['accounting_tools.Invoice'])),
- ))
- db.send_create_signal(u'accounting_tools', ['InvoiceViews'])
-
- # Adding model 'WithdrawalViews'
- db.create_table(u'accounting_tools_withdrawalviews', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='views', to=orm['accounting_tools.Withdrawal'])),
- ))
- db.send_create_signal(u'accounting_tools', ['WithdrawalViews'])
-
- # Adding model 'ExpenseClaimViews'
- db.create_table(u'accounting_tools_expenseclaimviews', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='views', to=orm['accounting_tools.ExpenseClaim'])),
- ))
- db.send_create_signal(u'accounting_tools', ['ExpenseClaimViews'])
-
- # Adding model 'CashBookViews'
- db.create_table(u'accounting_tools_cashbookviews', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='views', to=orm['accounting_tools.CashBook'])),
- ))
- db.send_create_signal(u'accounting_tools', ['CashBookViews'])
-
- # Adding model 'SubventionViews'
- db.create_table(u'accounting_tools_subventionviews', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='views', to=orm['accounting_tools.Subvention'])),
- ))
- db.send_create_signal(u'accounting_tools', ['SubventionViews'])
-
- # Adding model 'InternalTransferViews'
- db.create_table(u'accounting_tools_internaltransferviews', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='views', to=orm['accounting_tools.InternalTransfer'])),
- ))
- db.send_create_signal(u'accounting_tools', ['InternalTransferViews'])
-
-
- def backwards(self, orm):
- # Deleting model 'InvoiceViews'
- db.delete_table(u'accounting_tools_invoiceviews')
-
- # Deleting model 'WithdrawalViews'
- db.delete_table(u'accounting_tools_withdrawalviews')
-
- # Deleting model 'ExpenseClaimViews'
- db.delete_table(u'accounting_tools_expenseclaimviews')
-
- # Deleting model 'CashBookViews'
- db.delete_table(u'accounting_tools_cashbookviews')
-
- # Deleting model 'SubventionViews'
- db.delete_table(u'accounting_tools_subventionviews')
-
- # Deleting model 'InternalTransferViews'
- db.delete_table(u'accounting_tools_internaltransferviews')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_main.budget': {
- 'Meta': {'object_name': 'Budget'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookviews': {
- 'Meta': {'object_name': 'CashBookViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimviews': {
- 'Meta': {'object_name': 'ExpenseClaimViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.internaltransferviews': {
- 'Meta': {'object_name': 'InternalTransferViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceviews': {
- 'Meta': {'object_name': 'InvoiceViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'linked_budget': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_main.Budget']", 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionviews': {
- 'Meta': {'object_name': 'SubventionViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.withdrawalviews': {
- 'Meta': {'object_name': 'WithdrawalViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'homepage': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0031_auto__add_field_invoice_delay__add_field_invoice_english.py b/truffe2/accounting_tools/migrations/0031_auto__add_field_invoice_delay__add_field_invoice_english.py
deleted file mode 100644
index 771abc24..00000000
--- a/truffe2/accounting_tools/migrations/0031_auto__add_field_invoice_delay__add_field_invoice_english.py
+++ /dev/null
@@ -1,442 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'Invoice.delay'
- db.add_column(u'accounting_tools_invoice', 'delay',
- self.gf('django.db.models.fields.SmallIntegerField')(default=30),
- keep_default=False)
-
- # Adding field 'Invoice.english'
- db.add_column(u'accounting_tools_invoice', 'english',
- self.gf('django.db.models.fields.BooleanField')(default=False),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'Invoice.delay'
- db.delete_column(u'accounting_tools_invoice', 'delay')
-
- # Deleting field 'Invoice.english'
- db.delete_column(u'accounting_tools_invoice', 'english')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_main.budget': {
- 'Meta': {'object_name': 'Budget'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookviews': {
- 'Meta': {'object_name': 'CashBookViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimviews': {
- 'Meta': {'object_name': 'ExpenseClaimViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.internaltransferviews': {
- 'Meta': {'object_name': 'InternalTransferViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'delay': ('django.db.models.fields.SmallIntegerField', [], {'default': '30'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'english': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceviews': {
- 'Meta': {'object_name': 'InvoiceViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'unique_together': "(('unit', 'unit_blank_name', 'accounting_year'),)", 'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'linked_budget': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_main.Budget']", 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionviews': {
- 'Meta': {'object_name': 'SubventionViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.withdrawalviews': {
- 'Meta': {'object_name': 'WithdrawalViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'homepage': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0032_auto__del_unique_subvention_unit_unit_blank_name_accounting_year.py b/truffe2/accounting_tools/migrations/0032_auto__del_unique_subvention_unit_unit_blank_name_accounting_year.py
deleted file mode 100644
index 96aa2188..00000000
--- a/truffe2/accounting_tools/migrations/0032_auto__del_unique_subvention_unit_unit_blank_name_accounting_year.py
+++ /dev/null
@@ -1,432 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Removing unique constraint on 'Subvention', fields ['unit', 'unit_blank_name', 'accounting_year']
- db.delete_unique(u'accounting_tools_subvention', ['unit_id', 'unit_blank_name', 'accounting_year_id'])
-
-
- def backwards(self, orm):
- # Adding unique constraint on 'Subvention', fields ['unit', 'unit_blank_name', 'accounting_year']
- db.create_unique(u'accounting_tools_subvention', ['unit_id', 'unit_blank_name', 'accounting_year_id'])
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_main.budget': {
- 'Meta': {'object_name': 'Budget'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookviews': {
- 'Meta': {'object_name': 'CashBookViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimviews': {
- 'Meta': {'object_name': 'ExpenseClaimViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.internaltransferviews': {
- 'Meta': {'object_name': 'InternalTransferViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'delay': ('django.db.models.fields.SmallIntegerField', [], {'default': '30'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'english': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceviews': {
- 'Meta': {'object_name': 'InvoiceViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'linked_budget': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_main.Budget']", 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionviews': {
- 'Meta': {'object_name': 'SubventionViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.withdrawalviews': {
- 'Meta': {'object_name': 'WithdrawalViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'homepage': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0033_auto__add_field_invoice_reception_date.py b/truffe2/accounting_tools/migrations/0033_auto__add_field_invoice_reception_date.py
deleted file mode 100644
index 88303576..00000000
--- a/truffe2/accounting_tools/migrations/0033_auto__add_field_invoice_reception_date.py
+++ /dev/null
@@ -1,435 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'Invoice.reception_date'
- db.add_column(u'accounting_tools_invoice', 'reception_date',
- self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'Invoice.reception_date'
- db.delete_column(u'accounting_tools_invoice', 'reception_date')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_main.budget': {
- 'Meta': {'object_name': 'Budget'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookviews': {
- 'Meta': {'object_name': 'CashBookViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimviews': {
- 'Meta': {'object_name': 'ExpenseClaimViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.internaltransferviews': {
- 'Meta': {'object_name': 'InternalTransferViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'delay': ('django.db.models.fields.SmallIntegerField', [], {'default': '30'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'english': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'reception_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceviews': {
- 'Meta': {'object_name': 'InvoiceViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'linked_budget': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_main.Budget']", 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionviews': {
- 'Meta': {'object_name': 'SubventionViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.withdrawalviews': {
- 'Meta': {'object_name': 'WithdrawalViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'homepage': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0034_auto__chg_field_invoice_reception_date.py b/truffe2/accounting_tools/migrations/0034_auto__chg_field_invoice_reception_date.py
deleted file mode 100644
index 366df0d0..00000000
--- a/truffe2/accounting_tools/migrations/0034_auto__chg_field_invoice_reception_date.py
+++ /dev/null
@@ -1,433 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
-
- # Changing field 'Invoice.reception_date'
- db.alter_column(u'accounting_tools_invoice', 'reception_date', self.gf('django.db.models.fields.DateField')(null=True))
-
- def backwards(self, orm):
-
- # Changing field 'Invoice.reception_date'
- db.alter_column(u'accounting_tools_invoice', 'reception_date', self.gf('django.db.models.fields.DateTimeField')(null=True))
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_main.budget': {
- 'Meta': {'object_name': 'Budget'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookviews': {
- 'Meta': {'object_name': 'CashBookViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimviews': {
- 'Meta': {'object_name': 'ExpenseClaimViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.internaltransferviews': {
- 'Meta': {'object_name': 'InternalTransferViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'delay': ('django.db.models.fields.SmallIntegerField', [], {'default': '30'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'english': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'reception_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceviews': {
- 'Meta': {'object_name': 'InvoiceViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'linked_budget': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_main.Budget']", 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionviews': {
- 'Meta': {'object_name': 'SubventionViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.withdrawalviews': {
- 'Meta': {'object_name': 'WithdrawalViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'homepage': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0035_auto__add_field_invoice_add_to.py b/truffe2/accounting_tools/migrations/0035_auto__add_field_invoice_add_to.py
deleted file mode 100644
index 9d7365a7..00000000
--- a/truffe2/accounting_tools/migrations/0035_auto__add_field_invoice_add_to.py
+++ /dev/null
@@ -1,436 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'Invoice.add_to'
- db.add_column(u'accounting_tools_invoice', 'add_to',
- self.gf('django.db.models.fields.BooleanField')(default=False),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'Invoice.add_to'
- db.delete_column(u'accounting_tools_invoice', 'add_to')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_main.budget': {
- 'Meta': {'object_name': 'Budget'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookviews': {
- 'Meta': {'object_name': 'CashBookViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimviews': {
- 'Meta': {'object_name': 'ExpenseClaimViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.internaltransferviews': {
- 'Meta': {'object_name': 'InternalTransferViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'add_to': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'delay': ('django.db.models.fields.SmallIntegerField', [], {'default': '30'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'english': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'reception_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceviews': {
- 'Meta': {'object_name': 'InvoiceViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'linked_budget': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_main.Budget']", 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionviews': {
- 'Meta': {'object_name': 'SubventionViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.withdrawalviews': {
- 'Meta': {'object_name': 'WithdrawalViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'homepage': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0036_auto__add_cashbooktag__add_expenseclaimtag.py b/truffe2/accounting_tools/migrations/0036_auto__add_cashbooktag__add_expenseclaimtag.py
deleted file mode 100644
index 327c86af..00000000
--- a/truffe2/accounting_tools/migrations/0036_auto__add_cashbooktag__add_expenseclaimtag.py
+++ /dev/null
@@ -1,462 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'CashBookTag'
- db.create_table(u'accounting_tools_cashbooktag', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('tag', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='tags', to=orm['accounting_tools.CashBook'])),
- ))
- db.send_create_signal(u'accounting_tools', ['CashBookTag'])
-
- # Adding model 'ExpenseClaimTag'
- db.create_table(u'accounting_tools_expenseclaimtag', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('tag', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='tags', to=orm['accounting_tools.ExpenseClaim'])),
- ))
- db.send_create_signal(u'accounting_tools', ['ExpenseClaimTag'])
-
-
- def backwards(self, orm):
- # Deleting model 'CashBookTag'
- db.delete_table(u'accounting_tools_cashbooktag')
-
- # Deleting model 'ExpenseClaimTag'
- db.delete_table(u'accounting_tools_expenseclaimtag')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_main.budget': {
- 'Meta': {'object_name': 'Budget'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbooktag': {
- 'Meta': {'object_name': 'CashBookTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.cashbookviews': {
- 'Meta': {'object_name': 'CashBookViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimtag': {
- 'Meta': {'object_name': 'ExpenseClaimTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.expenseclaimviews': {
- 'Meta': {'object_name': 'ExpenseClaimViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.internaltransferviews': {
- 'Meta': {'object_name': 'InternalTransferViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'add_to': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'delay': ('django.db.models.fields.SmallIntegerField', [], {'default': '30'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'english': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'reception_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceviews': {
- 'Meta': {'object_name': 'InvoiceViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'linked_budget': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_main.Budget']", 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionviews': {
- 'Meta': {'object_name': 'SubventionViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.withdrawalviews': {
- 'Meta': {'object_name': 'WithdrawalViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'homepage': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0037_auto__add_field_internaltransfer_transfert_date.py b/truffe2/accounting_tools/migrations/0037_auto__add_field_internaltransfer_transfert_date.py
deleted file mode 100644
index 899b4029..00000000
--- a/truffe2/accounting_tools/migrations/0037_auto__add_field_internaltransfer_transfert_date.py
+++ /dev/null
@@ -1,449 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'InternalTransfer.transfert_date'
- db.add_column(u'accounting_tools_internaltransfer', 'transfert_date',
- self.gf('django.db.models.fields.DateField')(null=True, blank=True),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'InternalTransfer.transfert_date'
- db.delete_column(u'accounting_tools_internaltransfer', 'transfert_date')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_main.budget': {
- 'Meta': {'object_name': 'Budget'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbooktag': {
- 'Meta': {'object_name': 'CashBookTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.cashbookviews': {
- 'Meta': {'object_name': 'CashBookViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimtag': {
- 'Meta': {'object_name': 'ExpenseClaimTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.expenseclaimviews': {
- 'Meta': {'object_name': 'ExpenseClaimViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'transfert_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.internaltransferviews': {
- 'Meta': {'object_name': 'InternalTransferViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'add_to': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'delay': ('django.db.models.fields.SmallIntegerField', [], {'default': '30'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'english': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'reception_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceviews': {
- 'Meta': {'object_name': 'InvoiceViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'linked_budget': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_main.Budget']", 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionviews': {
- 'Meta': {'object_name': 'SubventionViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.withdrawalviews': {
- 'Meta': {'object_name': 'WithdrawalViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'homepage': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0038__add_invoice_validation.py b/truffe2/accounting_tools/migrations/0038__add_invoice_validation.py
deleted file mode 100644
index 25ad9922..00000000
--- a/truffe2/accounting_tools/migrations/0038__add_invoice_validation.py
+++ /dev/null
@@ -1,451 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
- no_dry_run = True
-
- def forwards(self, orm):
- orm.Invoice.objects.all().filter(status="4_canceled").update(status="5_canceled")
- orm.Invoice.objects.all().filter(status="3_archived").update(status="4_archived")
- orm.Invoice.objects.all().filter(status="2_sent").update(status="3_sent")
-
- def backwards(self, orm):
- orm.Invoice.objects.all().filter(status="5_canceled").update(status="4_canceled")
- orm.Invoice.objects.all().filter(status="4_archived").update(status="3_archived")
- orm.Invoice.objects.all().filter(status="3_sent").update(status="2_sent")
- orm.Invoice.objects.all().filter(status="2_ask_accord").update(status="0_preparing")
- orm.Invoice.objects.all().filter(status="2_accord").update(status="0_preparing")
- orm.Invoice.objects.all().filter(status="0_correct").update(status="0_preparing")
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_main.budget': {
- 'Meta': {'object_name': 'Budget'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbooktag': {
- 'Meta': {'object_name': 'CashBookTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.cashbookviews': {
- 'Meta': {'object_name': 'CashBookViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimtag': {
- 'Meta': {'object_name': 'ExpenseClaimTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.expenseclaimviews': {
- 'Meta': {'object_name': 'ExpenseClaimViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'transfert_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.internaltransferviews': {
- 'Meta': {'object_name': 'InternalTransferViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'add_to': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'delay': ('django.db.models.fields.SmallIntegerField', [], {'default': '30'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'english': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'reception_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceviews': {
- 'Meta': {'object_name': 'InvoiceViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'linked_budget': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_main.Budget']", 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionviews': {
- 'Meta': {'object_name': 'SubventionViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.withdrawalviews': {
- 'Meta': {'object_name': 'WithdrawalViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'homepage': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
diff --git a/truffe2/accounting_tools/migrations/0039_auto__add_providerinvoice__add_financialprovider__add_providerinvoicef.py b/truffe2/accounting_tools/migrations/0039_auto__add_providerinvoice__add_financialprovider__add_providerinvoicef.py
deleted file mode 100644
index b380d68e..00000000
--- a/truffe2/accounting_tools/migrations/0039_auto__add_providerinvoice__add_financialprovider__add_providerinvoicef.py
+++ /dev/null
@@ -1,644 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'ProviderInvoice'
- db.create_table(u'accounting_tools_providerinvoice', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('comment', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
- ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('status', self.gf('django.db.models.fields.CharField')(default='0_draft', max_length=255)),
- ('accounting_year', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_core.AccountingYear'])),
- ('costcenter', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_core.CostCenter'])),
- ('provider', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_tools.FinancialProvider'])),
- ))
- db.send_create_signal(u'accounting_tools', ['ProviderInvoice'])
-
- # Adding model 'FinancialProvider'
- db.create_table(u'accounting_tools_financialprovider', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('tva_number', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
- ('iban_ou_ccp', self.gf('django.db.models.fields.CharField')(max_length=128)),
- ('bic', self.gf('django.db.models.fields.CharField')(max_length=128, blank=True)),
- ('address', self.gf('django.db.models.fields.CharField')(max_length=256, blank=True)),
- ))
- db.send_create_signal(u'accounting_tools', ['FinancialProvider'])
-
- # Adding model 'ProviderInvoiceFile'
- db.create_table(u'accounting_tools_providerinvoicefile', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('upload_date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('uploader', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='files', null=True, to=orm['accounting_tools.ProviderInvoice'])),
- ('file', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
- ))
- db.send_create_signal(u'accounting_tools', ['ProviderInvoiceFile'])
-
- # Adding model 'ProviderInvoiceLogging'
- db.create_table(u'accounting_tools_providerinvoicelogging', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('extra_data', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('what', self.gf('django.db.models.fields.CharField')(max_length=64)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='logs', to=orm['accounting_tools.ProviderInvoice'])),
- ))
- db.send_create_signal(u'accounting_tools', ['ProviderInvoiceLogging'])
-
- # Adding model 'ProviderInvoiceLine'
- db.create_table(u'accounting_tools_providerinvoiceline', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('order', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),
- ('providerInvoice', self.gf('django.db.models.fields.related.ForeignKey')(related_name='lines', to=orm['accounting_tools.ProviderInvoice'])),
- ('label', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('account', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['accounting_core.Account'])),
- ('value', self.gf('django.db.models.fields.DecimalField')(max_digits=20, decimal_places=2)),
- ('tva', self.gf('django.db.models.fields.DecimalField')(max_digits=20, decimal_places=2)),
- ('value_ttc', self.gf('django.db.models.fields.DecimalField')(max_digits=20, decimal_places=2)),
- ))
- db.send_create_signal(u'accounting_tools', ['ProviderInvoiceLine'])
-
- # Adding model 'ProviderInvoiceTag'
- db.create_table(u'accounting_tools_providerinvoicetag', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('tag', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='tags', to=orm['accounting_tools.ProviderInvoice'])),
- ))
- db.send_create_signal(u'accounting_tools', ['ProviderInvoiceTag'])
-
- # Adding model 'FinancialProviderViews'
- db.create_table(u'accounting_tools_financialproviderviews', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='views', to=orm['accounting_tools.FinancialProvider'])),
- ))
- db.send_create_signal(u'accounting_tools', ['FinancialProviderViews'])
-
- # Adding model 'ProviderInvoiceViews'
- db.create_table(u'accounting_tools_providerinvoiceviews', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='views', to=orm['accounting_tools.ProviderInvoice'])),
- ))
- db.send_create_signal(u'accounting_tools', ['ProviderInvoiceViews'])
-
- # Adding model 'FinancialProviderLogging'
- db.create_table(u'accounting_tools_financialproviderlogging', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('extra_data', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('what', self.gf('django.db.models.fields.CharField')(max_length=64)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='logs', to=orm['accounting_tools.FinancialProvider'])),
- ))
- db.send_create_signal(u'accounting_tools', ['FinancialProviderLogging'])
-
-
- def backwards(self, orm):
- # Deleting model 'ProviderInvoice'
- db.delete_table(u'accounting_tools_providerinvoice')
-
- # Deleting model 'FinancialProvider'
- db.delete_table(u'accounting_tools_financialprovider')
-
- # Deleting model 'ProviderInvoiceFile'
- db.delete_table(u'accounting_tools_providerinvoicefile')
-
- # Deleting model 'ProviderInvoiceLogging'
- db.delete_table(u'accounting_tools_providerinvoicelogging')
-
- # Deleting model 'ProviderInvoiceLine'
- db.delete_table(u'accounting_tools_providerinvoiceline')
-
- # Deleting model 'ProviderInvoiceTag'
- db.delete_table(u'accounting_tools_providerinvoicetag')
-
- # Deleting model 'FinancialProviderViews'
- db.delete_table(u'accounting_tools_financialproviderviews')
-
- # Deleting model 'ProviderInvoiceViews'
- db.delete_table(u'accounting_tools_providerinvoiceviews')
-
- # Deleting model 'FinancialProviderLogging'
- db.delete_table(u'accounting_tools_financialproviderlogging')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_main.budget': {
- 'Meta': {'object_name': 'Budget'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbooktag': {
- 'Meta': {'object_name': 'CashBookTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.cashbookviews': {
- 'Meta': {'object_name': 'CashBookViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimtag': {
- 'Meta': {'object_name': 'ExpenseClaimTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.expenseclaimviews': {
- 'Meta': {'object_name': 'ExpenseClaimViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.financialprovider': {
- 'Meta': {'object_name': 'FinancialProvider'},
- 'address': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
- 'bic': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva_number': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'})
- },
- u'accounting_tools.financialproviderlogging': {
- 'Meta': {'object_name': 'FinancialProviderLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.FinancialProvider']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.financialproviderviews': {
- 'Meta': {'object_name': 'FinancialProviderViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.FinancialProvider']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'transfert_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.internaltransferviews': {
- 'Meta': {'object_name': 'InternalTransferViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'add_to': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'delay': ('django.db.models.fields.SmallIntegerField', [], {'default': '30'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'english': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'reception_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceviews': {
- 'Meta': {'object_name': 'InvoiceViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.providerinvoice': {
- 'Meta': {'object_name': 'ProviderInvoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'provider': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_tools.FinancialProvider']"}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.providerinvoicefile': {
- 'Meta': {'object_name': 'ProviderInvoiceFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ProviderInvoice']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.providerinvoiceline': {
- 'Meta': {'object_name': 'ProviderInvoiceLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'providerInvoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ProviderInvoice']"}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.providerinvoicelogging': {
- 'Meta': {'object_name': 'ProviderInvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ProviderInvoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.providerinvoicetag': {
- 'Meta': {'object_name': 'ProviderInvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.ProviderInvoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.providerinvoiceviews': {
- 'Meta': {'object_name': 'ProviderInvoiceViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.ProviderInvoice']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'linked_budget': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_main.Budget']", 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionviews': {
- 'Meta': {'object_name': 'SubventionViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.withdrawalviews': {
- 'Meta': {'object_name': 'WithdrawalViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'homepage': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/migrations/0040_add_accounting_signature_steps.py b/truffe2/accounting_tools/migrations/0040_add_accounting_signature_steps.py
deleted file mode 100644
index e1fd52af..00000000
--- a/truffe2/accounting_tools/migrations/0040_add_accounting_signature_steps.py
+++ /dev/null
@@ -1,555 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
- no_dry_run = True
-
- def forwards(self, orm):
-
- orm.Cashbook.objects.all().filter(status="4_canceled").update(status="6_canceled")
- orm.Cashbook.objects.all().filter(status="4_archived").update(status="6_archived")
- orm.Cashbook.objects.all().filter(status="3_accountable").update(status="4_accountable")
-
- orm.Providerinvoice.objects.all().filter(status="4_canceled").update(status="6_canceled")
- orm.Providerinvoice.objects.all().filter(status="4_archived").update(status="6_archived")
- orm.Providerinvoice.objects.all().filter(status="3_accountable").update(status="4_accountable")
-
- orm.ExpenseClaim.objects.all().filter(status="4_canceled").update(status="6_canceled")
- orm.ExpenseClaim.objects.all().filter(status="4_archived").update(status="6_archived")
- orm.ExpenseClaim.objects.all().filter(status="3_accountable").update(status="4_accountable")
-
-
- def backwards(self, orm):
- orm.Cashbook.objects.all().filter(status="6_canceled").update(status="4_canceled")
- orm.Cashbook.objects.all().filter(status="6_archived").update(status="4_archived")
- orm.Cashbook.objects.all().filter(status="4_accountable").update(status="3_accountable")
- orm.Cashbook.objects.all().filter(status="5_in_accounting").update(status="3_accountable")
- orm.Cashbook.objects.all().filter(status="3_agep_sig1").update(status="2_agep_validable")
- orm.Cashbook.objects.all().filter(status="3_agep_sig2").update(status="2_agep_validable")
-
- orm.ProviderInvoice.objects.all().filter(status="6_canceled").update(status="4_canceled")
- orm.ProviderInvoice.objects.all().filter(status="6_archived").update(status="4_archived")
- orm.ProviderInvoice.objects.all().filter(status="4_accountable").update(status="3_accountable")
- orm.ProviderInvoice.objects.all().filter(status="5_in_accounting").update(status="3_accountable")
- orm.ProviderInvoice.objects.all().filter(status="3_agep_sig1").update(status="2_agep_validable")
- orm.ProviderInvoice.objects.all().filter(status="3_agep_sig2").update(status="2_agep_validable")
-
- orm.ExpenseClaim.objects.all().filter(status="6_canceled").update(status="4_canceled")
- orm.ExpenseClaim.objects.all().filter(status="6_archived").update(status="4_archived")
- orm.ExpenseClaim.objects.all().filter(status="4_accountable").update(status="3_accountable")
- orm.ExpenseClaim.objects.all().filter(status="5_in_accounting").update(status="3_accountable")
- orm.ExpenseClaim.objects.all().filter(status="3_agep_sig1").update(status="2_agep_validable")
- orm.ExpenseClaim.objects.all().filter(status="3_agep_sig2").update(status="2_agep_validable")
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_main.budget': {
- 'Meta': {'object_name': 'Budget'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbooktag': {
- 'Meta': {'object_name': 'CashBookTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.cashbookviews': {
- 'Meta': {'object_name': 'CashBookViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimtag': {
- 'Meta': {'object_name': 'ExpenseClaimTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.expenseclaimviews': {
- 'Meta': {'object_name': 'ExpenseClaimViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.financialprovider': {
- 'Meta': {'object_name': 'FinancialProvider'},
- 'address': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
- 'bic': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'tva_number': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'})
- },
- u'accounting_tools.financialproviderlogging': {
- 'Meta': {'object_name': 'FinancialProviderLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.FinancialProvider']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.financialproviderviews': {
- 'Meta': {'object_name': 'FinancialProviderViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.FinancialProvider']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'transfert_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.internaltransferviews': {
- 'Meta': {'object_name': 'InternalTransferViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'add_to': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'delay': ('django.db.models.fields.SmallIntegerField', [], {'default': '30'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'english': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'reception_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceviews': {
- 'Meta': {'object_name': 'InvoiceViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.providerinvoice': {
- 'Meta': {'object_name': 'ProviderInvoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'provider': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_tools.FinancialProvider']"}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.providerinvoicefile': {
- 'Meta': {'object_name': 'ProviderInvoiceFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ProviderInvoice']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.providerinvoiceline': {
- 'Meta': {'object_name': 'ProviderInvoiceLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'providerInvoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ProviderInvoice']"}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.providerinvoicelogging': {
- 'Meta': {'object_name': 'ProviderInvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ProviderInvoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.providerinvoicetag': {
- 'Meta': {'object_name': 'ProviderInvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.ProviderInvoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.providerinvoiceviews': {
- 'Meta': {'object_name': 'ProviderInvoiceViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.ProviderInvoice']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'linked_budget': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_main.Budget']", 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionviews': {
- 'Meta': {'object_name': 'SubventionViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.withdrawalviews': {
- 'Meta': {'object_name': 'WithdrawalViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'homepage': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
diff --git a/truffe2/accounting_tools/migrations/0041_auto__add_field_financialprovider_remarks__chg_field_financialprovider.py b/truffe2/accounting_tools/migrations/0041_auto__add_field_financialprovider_remarks__chg_field_financialprovider.py
deleted file mode 100644
index b2056027..00000000
--- a/truffe2/accounting_tools/migrations/0041_auto__add_field_financialprovider_remarks__chg_field_financialprovider.py
+++ /dev/null
@@ -1,562 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'FinancialProvider.remarks'
- db.add_column(u'accounting_tools_financialprovider', 'remarks',
- self.gf('django.db.models.fields.TextField')(null=True, blank=True),
- keep_default=False)
-
-
- # Changing field 'FinancialProvider.address'
- db.alter_column(u'accounting_tools_financialprovider', 'address', self.gf('django.db.models.fields.CharField')(max_length=255))
- # Adding field 'ProviderInvoice.reference_number'
- db.add_column(u'accounting_tools_providerinvoice', 'reference_number',
- self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True),
- keep_default=False)
-
- # Adding field 'ProviderInvoice.raw_pay_code'
- db.add_column(u'accounting_tools_providerinvoice', 'raw_pay_code',
- self.gf('django.db.models.fields.TextField')(null=True, blank=True),
- keep_default=False)
-
- # Adding field 'ProviderInvoice.currency'
- db.add_column(u'accounting_tools_providerinvoice', 'currency',
- self.gf('django.db.models.fields.CharField')(default='CHF', max_length=3),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'FinancialProvider.remarks'
- db.delete_column(u'accounting_tools_financialprovider', 'remarks')
-
-
- # Changing field 'FinancialProvider.address'
- db.alter_column(u'accounting_tools_financialprovider', 'address', self.gf('django.db.models.fields.CharField')(max_length=256))
- # Deleting field 'ProviderInvoice.reference_number'
- db.delete_column(u'accounting_tools_providerinvoice', 'reference_number')
-
- # Deleting field 'ProviderInvoice.raw_pay_code'
- db.delete_column(u'accounting_tools_providerinvoice', 'raw_pay_code')
-
- # Deleting field 'ProviderInvoice.currency'
- db.delete_column(u'accounting_tools_providerinvoice', 'currency')
-
-
- models = {
- u'accounting_core.account': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'Account'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'visibility': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'accounting_core.accountcategory': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'),)", 'object_name': 'AccountCategory'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountCategory']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.accountingyear': {
- 'Meta': {'object_name': 'AccountingYear'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_accounting_import': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'subvention_deadline': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_core.costcenter': {
- 'Meta': {'unique_together': "(('name', 'accounting_year'), ('account_number', 'accounting_year'))", 'object_name': 'CostCenter'},
- 'account_number': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_main.budget': {
- 'Meta': {'object_name': 'Budget'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'accounting_tools.cashbook': {
- 'Meta': {'object_name': 'CashBook'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookfile': {
- 'Meta': {'object_name': 'CashBookFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.CashBook']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbookline': {
- 'Meta': {'object_name': 'CashBookLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'cashbook': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'date': ('django.db.models.fields.DateField', [], {}),
- 'helper': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.cashbooklogging': {
- 'Meta': {'object_name': 'CashBookLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.cashbooktag': {
- 'Meta': {'object_name': 'CashBookTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.cashbookviews': {
- 'Meta': {'object_name': 'CashBookViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.CashBook']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaim': {
- 'Meta': {'object_name': 'ExpenseClaim'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_proofs': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimfile': {
- 'Meta': {'object_name': 'ExpenseClaimFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimline': {
- 'Meta': {'object_name': 'ExpenseClaimLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'expense_claim': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'proof': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.expenseclaimlogging': {
- 'Meta': {'object_name': 'ExpenseClaimLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.expenseclaimtag': {
- 'Meta': {'object_name': 'ExpenseClaimTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.expenseclaimviews': {
- 'Meta': {'object_name': 'ExpenseClaimViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.ExpenseClaim']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.financialprovider': {
- 'Meta': {'object_name': 'FinancialProvider'},
- 'address': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
- 'bic': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'remarks': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'tva_number': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'})
- },
- u'accounting_tools.financialproviderlogging': {
- 'Meta': {'object_name': 'FinancialProviderLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.FinancialProvider']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.financialproviderviews': {
- 'Meta': {'object_name': 'FinancialProviderViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.FinancialProvider']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfer': {
- 'Meta': {'object_name': 'InternalTransfer'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'cost_center_from': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_from'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'cost_center_to': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'internal_transfer_to'", 'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'transfert_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.internaltransferlogging': {
- 'Meta': {'object_name': 'InternalTransferLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.internaltransfertag': {
- 'Meta': {'object_name': 'InternalTransferTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.internaltransferviews': {
- 'Meta': {'object_name': 'InternalTransferViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.InternalTransfer']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoice': {
- 'Meta': {'object_name': 'Invoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'add_to': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'address': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'annex': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'custom_bvr_number': ('django.db.models.fields.CharField', [], {'max_length': '59', 'null': 'True', 'blank': 'True'}),
- 'date_and_place': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
- 'delay': ('django.db.models.fields.SmallIntegerField', [], {'default': '30'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display_account': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'display_bvr': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'ending': ('django.db.models.fields.TextField', [], {'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- 'english': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'greetings': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'preface': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'reception_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
- 'sign': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_preparing'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceline': {
- 'Meta': {'object_name': 'InvoiceLine'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'invoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'quantity': ('django.db.models.fields.DecimalField', [], {'default': '1', 'max_digits': '20', 'decimal_places': '0'}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.invoicelogging': {
- 'Meta': {'object_name': 'InvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.invoicetag': {
- 'Meta': {'object_name': 'InvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.invoiceviews': {
- 'Meta': {'object_name': 'InvoiceViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Invoice']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.linkedinfo': {
- 'Meta': {'object_name': 'LinkedInfo'},
- 'address': ('django.db.models.fields.TextField', [], {}),
- 'bank': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'iban_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
- 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'phone': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
- 'user_pk': ('django.db.models.fields.PositiveIntegerField', [], {})
- },
- u'accounting_tools.providerinvoice': {
- 'Meta': {'object_name': 'ProviderInvoice'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'comment': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'currency': ('django.db.models.fields.CharField', [], {'default': "'CHF'", 'max_length': '3'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'provider': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_tools.FinancialProvider']"}),
- 'raw_pay_code': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'reference_number': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.providerinvoicefile': {
- 'Meta': {'object_name': 'ProviderInvoiceFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.ProviderInvoice']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.providerinvoiceline': {
- 'Meta': {'object_name': 'ProviderInvoiceLine'},
- 'account': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.Account']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'label': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'providerInvoice': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'lines'", 'to': u"orm['accounting_tools.ProviderInvoice']"}),
- 'tva': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'value_ttc': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'})
- },
- u'accounting_tools.providerinvoicelogging': {
- 'Meta': {'object_name': 'ProviderInvoiceLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.ProviderInvoice']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.providerinvoicetag': {
- 'Meta': {'object_name': 'ProviderInvoiceTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.ProviderInvoice']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.providerinvoiceviews': {
- 'Meta': {'object_name': 'ProviderInvoiceViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.ProviderInvoice']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subvention': {
- 'Meta': {'object_name': 'Subvention'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount_asked': ('django.db.models.fields.IntegerField', [], {}),
- 'amount_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'comment_root': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'kind': ('django.db.models.fields.CharField', [], {'max_length': '15', 'null': 'True', 'blank': 'True'}),
- 'linked_budget': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_main.Budget']", 'null': 'True', 'blank': 'True'}),
- 'mobility_asked': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'mobility_given': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.subventionfile': {
- 'Meta': {'object_name': 'SubventionFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Subvention']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionline': {
- 'Meta': {'object_name': 'SubventionLine'},
- 'end_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'nb_spec': ('django.db.models.fields.PositiveIntegerField', [], {}),
- 'order': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}),
- 'place': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateField', [], {}),
- 'subvention': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'events'", 'to': u"orm['accounting_tools.Subvention']"})
- },
- u'accounting_tools.subventionlogging': {
- 'Meta': {'object_name': 'SubventionLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.subventionviews': {
- 'Meta': {'object_name': 'SubventionViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Subvention']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawal': {
- 'Meta': {'object_name': 'Withdrawal'},
- 'accounting_year': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.AccountingYear']"}),
- 'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '20', 'decimal_places': '2'}),
- 'costcenter': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['accounting_core.CostCenter']"}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'desired_date': ('django.db.models.fields.DateField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"}),
- 'withdrawn_date': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'})
- },
- u'accounting_tools.withdrawalfile': {
- 'Meta': {'object_name': 'WithdrawalFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawallogging': {
- 'Meta': {'object_name': 'WithdrawalLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'accounting_tools.withdrawaltag': {
- 'Meta': {'object_name': 'WithdrawalTag'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tags'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'tag': ('django.db.models.fields.CharField', [], {'max_length': '255'})
- },
- u'accounting_tools.withdrawalviews': {
- 'Meta': {'object_name': 'WithdrawalViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['accounting_tools.Withdrawal']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'homepage': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['accounting_tools']
\ No newline at end of file
diff --git a/truffe2/accounting_tools/models.py b/truffe2/accounting_tools/models.py
index 5a033302..eb31388d 100644
--- a/truffe2/accounting_tools/models.py
+++ b/truffe2/accounting_tools/models.py
@@ -2,19 +2,19 @@
from django import forms
from django.db import models
-from django.utils.translation import ugettext_lazy as _
+from django.db.models.deletion import PROTECT, SET_NULL, PROTECT
+from django.utils.translation import gettext_lazy as _
from django.contrib import messages
-from django.contrib.contenttypes import generic
+from django.contrib.contenttypes import fields
from django.contrib.contenttypes.models import ContentType
from django.conf import settings
from django.template.defaultfilters import date as _date
from django.utils import translation
from django.utils.timezone import now
-from raven.contrib.django.models import client
from django.contrib.humanize.templatetags.humanize import intcomma
from django.template.defaultfilters import floatformat
-
+from raven.contrib.django.models import client
from schwifty import IBAN
import datetime
import string
@@ -41,7 +41,7 @@ class MetaRightsUnit(UnitExternalEditableModel.MetaRightsUnit):
access = 'TRESORERIE'
world_ro_access = False
- name = models.CharField(_(u'Nom du projet'), max_length=255)
+ name = models.CharField(_(u'Nom du projet'), max_length=255, default='---')
amount_asked = models.IntegerField(_(u'Montant demandé'))
amount_given = models.IntegerField(_(u'Montant attribué'), blank=True, null=True)
mobility_asked = models.IntegerField(_(u'Montant mobilité demandé'), blank=True, null=True)
@@ -57,7 +57,7 @@ class Meta:
class MetaEdit:
only_if = {
- 'linked_budget': lambda (obj, user): obj.unit,
+ 'linked_budget': lambda obj, user: obj.unit,
}
files_title = _(u'Fichiers')
@@ -86,7 +86,7 @@ class MetaData:
details_display = list_display + [('description', _(u'Description')), ('accounting_year', _(u'Année comptable'))]
details_display.insert(3, ('amount_given', _(u'Montant attribué')))
details_display.insert(5, ('mobility_given', _(u'Montant mobilité attribué')))
- extra_right_display = {'comment_root': lambda (obj, user): obj.rights_can('LIST', user)}
+ extra_right_display = {'comment_root': lambda obj, user: obj.rights_can('LIST', user)}
files_title = _(u'Fichiers')
base_title = _(u'Subvention')
@@ -257,7 +257,7 @@ def can_switch_to(self, user, dest_state):
return super(_Subvention, self).can_switch_to(user, dest_state)
- def __unicode__(self):
+ def __str__(self):
return u"{} {}".format(self.get_real_unit_name(), self.accounting_year)
def genericFormExtraClean(self, data, form):
@@ -297,15 +297,15 @@ def total_people(self):
class SubventionLine(ModelUsedAsLine):
- name = models.CharField(_(u'Nom de l\'évènement'), max_length=255)
+ name = models.CharField(_(u'Nom de l\'évènement'), max_length=255, default='---')
start_date = models.DateField(_(u'Début de l\'évènement'))
end_date = models.DateField(_(u'Fin de l\'évènement'))
place = models.CharField(_(u'Lieu de l\'évènement'), max_length=100)
nb_spec = models.PositiveIntegerField(_(u'Nombre de personnes attendues'))
- subvention = models.ForeignKey('Subvention', related_name="events", verbose_name=_(u'Subvention/sponsoring'))
+ subvention = models.ForeignKey('Subvention', related_name="events", verbose_name=_(u'Subvention/sponsoring'), on_delete=PROTECT)
- def __unicode__(self):
+ def __str__(self):
return u"{}:{}".format(self.subvention.name, self.name)
@@ -369,7 +369,7 @@ class MetaData:
('add_to', _(u'Rajouter "À l\'attention de"')),
]
- filter_fields = ('title', )
+ filter_fields = ('title',)
base_title = _(u'Facture (client)')
list_title = _(u'Liste de toutes les factures (client)')
@@ -404,7 +404,7 @@ def set_extra_defaults(obj, request):
obj.date_and_place = u'Lausanne, le {}'.format(_date(datetime.datetime.now(), u'd F Y'))
only_if = {
- 'reception_date': lambda (obj, user): user.is_superuser or obj.rights_in_root_unit(user, access='TRESORERIE'),
+ 'reception_date': lambda obj, user: user.is_superuser or obj.rights_in_root_unit(user, access='TRESORERIE'),
}
class MetaLines:
@@ -503,7 +503,7 @@ class MetaState:
'0_correct': [('2_ask_accord', 'fa fa-question', _(u'Demande accord AGEPoly')),
('1_need_bvr', 'fa fa-question', _(u'Demander un BVR'))],
'1_need_bvr': [],
- '2_ask_accord': [('2_accord', 'fa fa-check', _(u'Donner l\'accord')),],
+ '2_ask_accord': [('2_accord', 'fa fa-check', _(u'Donner l\'accord')), ],
'2_accord': [('3_sent', 'fa fa-check', _(u'Marquer comme envoyée'))],
'3_sent': [('4_archived', 'fa fa-check', _(u'Marquer comme terminée')), ],
'4_archived': [],
@@ -541,6 +541,7 @@ class FormBVR(forms.Form):
bvr = forms.CharField(label=_('BVR'), help_text=_(u'Soit le numéro complet, soit la fin, 94 42100 0...0 étant rajouté automatiquement'), required=False)
def build_form_date(request, obj):
+
class FormDate(forms.Form):
date = forms.DateField(label=_('Date valeur banque'), required=False, initial=now())
@@ -672,11 +673,10 @@ def rights_can_DOWNLOAD_PDF(self, user):
return False
-
class Meta:
abstract = True
- def __unicode__(self):
+ def __str__(self):
return u'{} ({})'.format(self.title, self.get_reference())
def get_reference(self):
@@ -790,7 +790,7 @@ def get_language(self):
class InvoiceLine(ModelUsedAsLine):
- invoice = models.ForeignKey('Invoice', related_name="lines")
+ invoice = models.ForeignKey('Invoice', related_name="lines", on_delete=PROTECT)
label = models.CharField(_(u'Titre'), max_length=255)
quantity = models.DecimalField(_(u'Quantité'), max_digits=20, decimal_places=0, default=1)
@@ -798,7 +798,7 @@ class InvoiceLine(ModelUsedAsLine):
tva = models.DecimalField(_('TVA'), max_digits=20, decimal_places=2)
value_ttc = models.DecimalField(_('Montant (TTC)'), max_digits=20, decimal_places=2)
- def __unicode__(self):
+ def __str__(self):
return u'{}: {} * ({} + {}% == {})'.format(self.label, self.quantity, self.value, self.tva, self.value_ttc)
def total(self):
@@ -821,7 +821,7 @@ class _InternalTransfer(GenericModel, GenericStateModel, GenericTaggableObject,
class MetaRightsAgepoly(AgepolyEditableModel.MetaRightsAgepoly):
access = 'TRESORERIE'
- name = models.CharField(_('Raison du transfert'), max_length=255)
+ name = models.CharField(_('Raison du transfert'), max_length=255, default='---')
description = models.TextField(_('Description'), blank=True, null=True)
account = FalseFK('accounting_core.models.Account', verbose_name=_(u'Compte concerné'))
cost_center_from = FalseFK('accounting_core.models.CostCenter', related_name='internal_transfer_from', verbose_name=_(u'Centre de coûts prélevé'))
@@ -934,6 +934,7 @@ class MetaState:
}
def build_form_done(request, obj):
+
class FormDone(forms.Form):
transfert_date = forms.DateField(label=_('Date effective'), required=True, initial=now().date())
@@ -1019,7 +1020,7 @@ def switch_status_signal(self, request, old_status, dest_status):
self.transfert_date = request.POST.get('transfert_date')
self.save()
- def __unicode__(self):
+ def __str__(self):
return u"{} ({})".format(self.name, self.accounting_year)
def genericFormExtraInit(self, form, current_user, *args, **kwargs):
@@ -1044,8 +1045,8 @@ class MetaRightsUnit(UnitEditableModel.MetaRightsUnit):
class MetaRights(UnitEditableModel.MetaRights):
linked_unit_property = 'costcenter.unit'
- name = models.CharField(_('Raison du retrait'), max_length=255)
- user = models.ForeignKey(settings.AUTH_USER_MODEL, verbose_name=_(u'Responsable'))
+ name = models.CharField(_('Raison du retrait'), max_length=255, default='---')
+ user = models.ForeignKey(settings.AUTH_USER_MODEL, verbose_name=_(u'Responsable'), on_delete=PROTECT)
description = models.TextField(_('Description'), blank=True, null=True)
amount = models.DecimalField(_('Montant'), max_digits=20, decimal_places=2)
desired_date = models.DateField(_(u'Date souhaitée'))
@@ -1157,6 +1158,7 @@ class MetaState:
status_col_id = 3
def build_form_withdrawn(request, obj):
+
class FormWithdrawn(forms.Form):
initial = obj.withdrawn_date if obj.withdrawn_date else now().date()
withdrawn_date = forms.DateField(label=_('Date retrait banque'), help_text=_(u'La date de retrait à la banque'), required=True, initial=initial)
@@ -1246,7 +1248,7 @@ def switch_status_signal(self, request, old_status, dest_status):
elif dest_status == '4_canceled' and self.status != '0_draft':
notify_people(request, '%s.canceled' % (self.__class__.__name__,), 'accounting_canceled', self, self.build_group_members_for_canedit())
- def __unicode__(self):
+ def __str__(self):
return u"{} ({})".format(self.name, self.costcenter)
def genericFormExtraInit(self, form, current_user, *args, **kwargs):
@@ -1264,9 +1266,9 @@ def rights_can_DISPLAY_LOG(self, user):
class LinkedInfo(models.Model):
"""Modèle pour les infos liées aux modèles de leur choix"""
- content_type = models.ForeignKey(ContentType)
+ content_type = models.ForeignKey(ContentType, on_delete=PROTECT)
object_id = models.PositiveIntegerField()
- linked_object = generic.GenericForeignKey('content_type', 'object_id')
+ linked_object = fields.GenericForeignKey('content_type', 'object_id')
user_pk = models.PositiveIntegerField()
first_name = models.CharField(_(u'Prénom'), max_length=50)
@@ -1286,8 +1288,8 @@ class MetaRightsUnit(UnitEditableModel.MetaRightsUnit):
class MetaRights(UnitEditableModel.MetaRights):
linked_unit_property = 'costcenter.unit'
- name = models.CharField(_(u'Titre de la note de frais'), max_length=255)
- user = models.ForeignKey(settings.AUTH_USER_MODEL)
+ name = models.CharField(_(u'Titre de la note de frais'), max_length=255, default='---')
+ user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=PROTECT)
nb_proofs = models.PositiveIntegerField(_(u'Nombre de justificatifs'), default=0)
comment = models.TextField(_(u'Commentaire'), null=True, blank=True)
@@ -1385,7 +1387,7 @@ class MetaSearch(SearchableModel.MetaSearch):
'lines': ['label', 'proof']
}
- def __unicode__(self):
+ def __str__(self):
return u"{} - {}".format(self.name, self.costcenter)
def rights_can_EDIT(self, user):
@@ -1422,17 +1424,17 @@ def is_unit_validator(self, user):
class ExpenseClaimLine(ModelUsedAsLine):
- expense_claim = models.ForeignKey('ExpenseClaim', related_name="lines")
+ expense_claim = models.ForeignKey('ExpenseClaim', related_name="lines", on_delete=PROTECT)
label = models.CharField(_(u'Concerne'), max_length=255)
proof = models.CharField(_(u'Justificatif'), max_length=255, blank=True)
- account = models.ForeignKey('accounting_core.Account', verbose_name=_('Compte'))
+ account = models.ForeignKey('accounting_core.Account', verbose_name=_('Compte'), on_delete=PROTECT)
value = models.DecimalField(_(u'Montant (HT)'), max_digits=20, decimal_places=2)
tva = models.DecimalField(_(u'TVA'), max_digits=20, decimal_places=2)
value_ttc = models.DecimalField(_(u'Montant (TTC)'), max_digits=20, decimal_places=2)
- def __unicode__(self):
+ def __str__(self):
return u'{}: {} + {}% == {}'.format(self.label, self.value, self.tva, self.value_ttc)
def get_tva(self):
@@ -1445,7 +1447,7 @@ def display_amount(self):
class _FinancialProvider(GenericModel, SearchableModel, AgepolyEditableModel):
- name = models.CharField(_(u'Nom du fournisseur'), max_length=255)
+ name = models.CharField(_(u'Nom du fournisseur'), max_length=255, default='---')
tva_number = models.CharField(_(u'Numéro de TVA du fournisseur'), max_length=255, blank=True, help_text=_(u'CHE-XXX.XXX.XXX (Recherche)'))
iban_ou_ccp = models.CharField(_('IBAN'), max_length=128, blank=False, help_text=_(u'(Convertir un numéro de compte en IBAN) Si la convertion ne fonctionne pas, noter CH00 et mettre le numéro de compte en remarque.'))
@@ -1490,7 +1492,7 @@ class MetaEdit:
all_users = True
- def __unicode__(self):
+ def __str__(self):
return self.name
class MetaRightsAgepoly(AgepolyEditableModel.MetaRightsAgepoly):
@@ -1531,9 +1533,9 @@ class MetaRightsUnit(UnitEditableModel.MetaRightsUnit):
class MetaRights(UnitEditableModel.MetaRights):
linked_unit_property = 'costcenter.unit'
- name = models.CharField(_(u'Titre de la facture fournisseur'), max_length=255)
+ name = models.CharField(_(u'Titre de la facture fournisseur'), max_length=255, default='---')
comment = models.TextField(_(u'Commentaire'), null=True, blank=True)
- user = models.ForeignKey(settings.AUTH_USER_MODEL)
+ user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=PROTECT)
reference_number = models.CharField(_(u'Numéro de Référence'), null=True, blank=True, max_length=255)
raw_pay_code = models.TextField(_(u'Raw Swiss Payment Code'), null=True, blank=True)
@@ -1646,7 +1648,7 @@ class MetaSearch(SearchableModel.MetaSearch):
'lines': ['label']
}
- def __unicode__(self):
+ def __str__(self):
return u"{} - {}".format(self.name, self.costcenter)
def rights_can_EDIT(self, user):
@@ -1684,15 +1686,15 @@ def genericFormExtraClean(self, data, form):
class ProviderInvoiceLine(ModelUsedAsLine):
- providerInvoice = models.ForeignKey('ProviderInvoice', related_name="lines")
+ providerInvoice = models.ForeignKey('ProviderInvoice', related_name="lines", on_delete=PROTECT)
label = models.CharField(_(u'Concerne'), max_length=255)
- account = models.ForeignKey('accounting_core.Account', verbose_name=_('Compte'))
+ account = models.ForeignKey('accounting_core.Account', verbose_name=_('Compte'), on_delete=PROTECT)
value = models.DecimalField(_(u'Montant (HT)'), max_digits=20, decimal_places=2)
tva = models.DecimalField(_(u'TVA'), max_digits=20, decimal_places=2)
value_ttc = models.DecimalField(_(u'Montant (TTC)'), max_digits=20, decimal_places=2)
- def __unicode__(self):
+ def __str__(self):
return u'{}: {} + {}% == {}'.format(self.label, self.value, self.tva, self.value_ttc)
def get_tva(self):
@@ -1712,14 +1714,14 @@ class MetaRightsUnit(UnitEditableModel.MetaRightsUnit):
class MetaRights(UnitEditableModel.MetaRights):
linked_unit_property = 'costcenter.unit'
- name = models.CharField(_(u'Titre du journal de caisse'), max_length=255)
- user = models.ForeignKey(settings.AUTH_USER_MODEL)
+ name = models.CharField(_(u'Titre du journal de caisse'), max_length=255, default='---')
+ user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=PROTECT)
nb_proofs = models.PositiveIntegerField(_(u'Nombre de justificatifs'), default=0)
comment = models.TextField(_(u'Commentaire'), null=True, blank=True)
- content_type = models.ForeignKey(ContentType, blank=True, null=True)
+ content_type = models.ForeignKey(ContentType, blank=True, null=True, on_delete=SET_NULL)
object_id = models.PositiveIntegerField(blank=True, null=True)
- proving_object = generic.GenericForeignKey('content_type', 'object_id')
+ proving_object = fields.GenericForeignKey('content_type', 'object_id')
class MetaData:
list_display = [
@@ -1795,8 +1797,10 @@ class MetaGroups(GenericGroupsModel.MetaGroups):
class MetaState(GenericAccountingStateModel.MetaState):
def build_form_archive(request, obj):
+
class FormArchive(forms.Form):
archive_proving_obj = forms.BooleanField(label=_(u'Archiver le retrait cash lié?'), initial=True, required=False)
+
return FormArchive if obj.proving_object else None
states_bonus_form = {
@@ -1819,7 +1823,7 @@ class MetaSearch(SearchableModel.MetaSearch):
'lines': ['label', 'proof', 'amount']
}
- def __unicode__(self):
+ def __str__(self):
return u"{} - {}".format(self.name, self.costcenter)
def genericFormExtraClean(self, data, form):
@@ -1887,19 +1891,19 @@ class CashBookLine(ModelUsedAsLine):
('7_output', _(u'Je fais un Débit manuel : ')),
)
- cashbook = models.ForeignKey('CashBook', related_name="lines")
+ cashbook = models.ForeignKey('CashBook', related_name="lines", on_delete=PROTECT)
date = models.DateField(_(u'Date'))
helper = models.CharField(max_length=15, choices=HELPER_TYPE)
label = models.CharField(_(u'Concerne'), max_length=255)
proof = models.CharField(_(u'Justificatif'), max_length=255, blank=True)
- account = models.ForeignKey('accounting_core.Account', verbose_name=_('Compte'))
+ account = models.ForeignKey('accounting_core.Account', verbose_name=_('Compte'), on_delete=PROTECT)
value = models.DecimalField(_(u'Montant (HT)'), max_digits=20, decimal_places=2)
tva = models.DecimalField(_(u'TVA'), max_digits=20, decimal_places=2)
value_ttc = models.DecimalField(_(u'Montant (TTC)'), max_digits=20, decimal_places=2)
- def __unicode__(self):
+ def __str__(self):
return u'{}: {} + {}% == {}'.format(self.label, self.value, self.tva, self.value_ttc)
def get_tva(self):
diff --git a/truffe2/accounting_tools/templates/accounting_tools/cashbook/edit.html b/truffe2/accounting_tools/templates/accounting_tools/cashbook/edit.html
index a3cb5732..cdfebf3f 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/cashbook/edit.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/cashbook/edit.html
@@ -71,7 +71,7 @@
// Enable/disable select2 if rcash chosen
$('#s2id_id_withdrawal').next('select').change(function(e) {
if (e.val != "") {
- $.ajax('{% url 'accounting_tools.views.get_withdrawal_infos' 99942999 %}'.replace(99942999, e.val)).done(function(data) {
+ $.ajax('{% url 'accounting_tools-views-get_withdrawal_infos' 99942999 %}'.replace(99942999, e.val)).done(function(data) {
$('#id_user').select2('val', data['user_pk']);
$('#id_user').attr('disabled', true);
@@ -130,7 +130,7 @@
});
function update_users(pk) {
- $.ajax('{% url 'accounting_core.views.users_available_list_by_unit' 99942999 %}'.replace(99942999, pk)).done(function (data) {
+ $.ajax('{% url 'accounting_core-views-users_available_list_by_unit' 99942999 %}'.replace(99942999, pk)).done(function (data) {
var old_value = $('#id_user').val();
var options = '';
@@ -147,7 +147,7 @@
}
function update_rcashs() {
- $.ajax('{% url 'accounting_tools.views.withdrawal_available_list' %}?ypk=' + $('#input_ypk').val() + '&upk=' + $('#input_upk').val()).done(function (data) {
+ $.ajax('{% url 'accounting_tools-views-withdrawal_available_list' %}?ypk=' + $('#input_ypk').val() + '&upk=' + $('#input_upk').val()).done(function (data) {
var old_value = $('#id_withdrawal').val();
var options = '';
@@ -163,7 +163,7 @@
}
function update_accounts() {
- $.ajax('{% url 'accounting_core.views.account_available_list' %}?ypk=' + $('#input_ypk').val()).done(function (data) {
+ $.ajax('{% url 'accounting_core-views-account_available_list' %}?ypk=' + $('#input_ypk').val()).done(function (data) {
var options = '';
$.each(data.data, function (index, option) {
diff --git a/truffe2/accounting_tools/templates/accounting_tools/cashbook/list_json.html b/truffe2/accounting_tools/templates/accounting_tools/cashbook/list_json.html
index 127846c8..f2803a7e 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/cashbook/list_json.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/cashbook/list_json.html
@@ -2,6 +2,6 @@
{% load i18n %}
{% block bonus_buttons %}
-
- {% trans "CSV" %}\">
+
+ {% trans "CSV" %}\">
{% endblock %}
diff --git a/truffe2/accounting_tools/templates/accounting_tools/cashbook/pdf.html b/truffe2/accounting_tools/templates/accounting_tools/cashbook/pdf.html
index 9c8b3fe2..4b208faf 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/cashbook/pdf.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/cashbook/pdf.html
@@ -76,19 +76,19 @@ {% trans "Jo
{% trans "Visa de l'unité : " %} |
- {% if object.get_unit_signer %} {{ object.get_unit_signer.first_name }} {{ object.get_unit_signer.last_name }}{% endif %} |
+ {% if object.get_unit_signer %} {{ object.get_unit_signer.first_name }} {{ object.get_unit_signer.last_name }}{% endif %} |
| |
{% trans "Visa AGEPoly (1): " %} |
- {% if object.get_root_unit_signer_1 %} {{ object.get_root_unit_signer_1.first_name }} {{ object.get_root_unit_signer_1.last_name }}{% endif %} |
+ {% if object.get_root_unit_signer_1 %} {{ object.get_root_unit_signer_1.first_name }} {{ object.get_root_unit_signer_1.last_name }}{% endif %} |
| |
{% trans "Visa AGEPoly (2): " %} |
- {% if object.get_root_unit_signer_2 %} {{ object.get_root_unit_signer_2.first_name }} {{ object.get_root_unit_signer_2.last_name }}{% endif %} |
+ {% if object.get_root_unit_signer_2 %} {{ object.get_root_unit_signer_2.first_name }} {{ object.get_root_unit_signer_2.last_name }}{% endif %} |
{% endblock %}
diff --git a/truffe2/accounting_tools/templates/accounting_tools/cashbook/show.html b/truffe2/accounting_tools/templates/accounting_tools/cashbook/show.html
index 00fb1015..a6811ed0 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/cashbook/show.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/cashbook/show.html
@@ -2,8 +2,8 @@
{% load i18n humanize %}
{% block bonus_buttons %}
- PDF
- CSV
+ PDF
+ CSV
{% endblock %}
{% block post_lines %}
diff --git a/truffe2/accounting_tools/templates/accounting_tools/expenseclaim/edit.html b/truffe2/accounting_tools/templates/accounting_tools/expenseclaim/edit.html
index a5ed6bfd..12000c6f 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/expenseclaim/edit.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/expenseclaim/edit.html
@@ -36,7 +36,7 @@
});
function update_users(pk) {
- $.ajax('{% url 'accounting_core.views.users_available_list_by_unit' 99942999 %}'.replace(99942999, pk)).done(function (data) {
+ $.ajax('{% url 'accounting_core-views-users_available_list_by_unit' 99942999 %}'.replace(99942999, pk)).done(function (data) {
var old_value = $('#id_user').val();
var options = '';
@@ -53,7 +53,7 @@
}
function update_accounts() {
- $.ajax('{% url 'accounting_core.views.account_available_list' %}?ypk=' + $('#input_ypk').val()).done(function (data) {
+ $.ajax('{% url 'accounting_core-views-account_available_list' %}?ypk=' + $('#input_ypk').val()).done(function (data) {
var options = '';
$.each(data.data, function (index, option) {
diff --git a/truffe2/accounting_tools/templates/accounting_tools/expenseclaim/list_json.html b/truffe2/accounting_tools/templates/accounting_tools/expenseclaim/list_json.html
index 8958617d..f2ede0f9 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/expenseclaim/list_json.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/expenseclaim/list_json.html
@@ -2,6 +2,6 @@
{% load i18n %}
{% block bonus_buttons %}
-
- {% trans "CSV" %}\">
+
+ {% trans "CSV" %}\">
{% endblock %}
diff --git a/truffe2/accounting_tools/templates/accounting_tools/expenseclaim/pdf.html b/truffe2/accounting_tools/templates/accounting_tools/expenseclaim/pdf.html
index 6d456b9f..7aa6d699 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/expenseclaim/pdf.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/expenseclaim/pdf.html
@@ -39,19 +39,19 @@ {% trans "No
{% trans "Visa de l'unité : " %} |
- {% if object.get_unit_signer %} {{ object.get_unit_signer.first_name }} {{ object.get_unit_signer.last_name }}{% endif %} |
+ {% if object.get_unit_signer %} {{ object.get_unit_signer.first_name }} {{ object.get_unit_signer.last_name }}{% endif %} |
| |
{% trans "Visa AGEPoly (1): " %} |
- {% if object.get_root_unit_signer_1 %} {{ object.get_root_unit_signer_1.first_name }} {{ object.get_root_unit_signer_1.last_name }}{% endif %} |
+ {% if object.get_root_unit_signer_1 %} {{ object.get_root_unit_signer_1.first_name }} {{ object.get_root_unit_signer_1.last_name }}{% endif %} |
| |
{% trans "Visa AGEPoly (2): " %} |
- {% if object.get_root_unit_signer_2 %} {{ object.get_root_unit_signer_2.first_name }} {{ object.get_root_unit_signer_2.last_name }}{% endif %} |
+ {% if object.get_root_unit_signer_2 %} {{ object.get_root_unit_signer_2.first_name }} {{ object.get_root_unit_signer_2.last_name }}{% endif %} |
diff --git a/truffe2/accounting_tools/templates/accounting_tools/expenseclaim/show.html b/truffe2/accounting_tools/templates/accounting_tools/expenseclaim/show.html
index 870e51bd..7b6cc00d 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/expenseclaim/show.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/expenseclaim/show.html
@@ -2,8 +2,8 @@
{% load i18n humanize %}
{% block bonus_buttons %}
- PDF
- CSV
+ PDF
+ CSV
{% endblock %}
{% block post_lines %}
diff --git a/truffe2/accounting_tools/templates/accounting_tools/internaltransfer/edit.html b/truffe2/accounting_tools/templates/accounting_tools/internaltransfer/edit.html
index 4d295f12..9405ff11 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/internaltransfer/edit.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/internaltransfer/edit.html
@@ -20,7 +20,7 @@
});
function update_accounts(pk) {
- $.ajax('{% url 'accounting_core.views.account_available_list' %}?ypk=' + pk).done(function (data) {
+ $.ajax('{% url 'accounting_core-views-account_available_list' %}?ypk=' + pk).done(function (data) {
$('#id_account option').remove();
$('#id_account').append(
$('').val('').html('---------')
@@ -35,7 +35,7 @@
}
function update_cost_centers_from(pk) {
- $.ajax('{% url 'accounting_core.views.costcenter_available_list' %}?ypk=' + pk).done(function (data) {
+ $.ajax('{% url 'accounting_core-views-costcenter_available_list' %}?ypk=' + pk).done(function (data) {
$('#id_cost_center_from option').remove();
$('#id_cost_center_from').append(
$('').val('').html('---------')
@@ -50,7 +50,7 @@
}
function update_cost_centers_to(pk) {
- $.ajax('{% url 'accounting_core.views.costcenter_available_list' %}?ypk=' + pk).done(function (data) {
+ $.ajax('{% url 'accounting_core-views-costcenter_available_list' %}?ypk=' + pk).done(function (data) {
$('#id_cost_center_to option').remove();
$('#id_cost_center_to').append(
$('').val('').html('---------')
diff --git a/truffe2/accounting_tools/templates/accounting_tools/internaltransfer/list_json.html b/truffe2/accounting_tools/templates/accounting_tools/internaltransfer/list_json.html
index 9df3c8dd..c300b5fc 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/internaltransfer/list_json.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/internaltransfer/list_json.html
@@ -2,6 +2,6 @@
{% load i18n %}
{% block bonus_buttons %}
- {% trans "PDF" %}\">
- {% trans "CSV" %}\">
+ {% trans "PDF" %}\">
+ {% trans "CSV" %}\">
{% endblock %}
diff --git a/truffe2/accounting_tools/templates/accounting_tools/internaltransfer/multiple_pdf.html b/truffe2/accounting_tools/templates/accounting_tools/internaltransfer/multiple_pdf.html
index 54717b4a..e4cf12e6 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/internaltransfer/multiple_pdf.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/internaltransfer/multiple_pdf.html
@@ -10,8 +10,8 @@
@frame logoFrame {
-pdf-frame-content: logoFrameContent;
top: 0.4cm;
- right: 1.2cm;
- width: 25%;
+ right: 1.0cm;
+ left: 15cm;
}
@frame footer {
@@ -42,7 +42,7 @@
{% block content %}
-
+
{% trans "Transferts internes" %}
diff --git a/truffe2/accounting_tools/templates/accounting_tools/internaltransfer/show.html b/truffe2/accounting_tools/templates/accounting_tools/internaltransfer/show.html
index 971ac979..cacd214c 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/internaltransfer/show.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/internaltransfer/show.html
@@ -2,6 +2,6 @@
{% load i18n %}
{% block bonus_buttons %}
- {% trans "Voir le PDF" %}
- {% trans "Export CSV" %}
+ {% trans "Voir le PDF" %}
+ {% trans "Export CSV" %}
{% endblock %}
diff --git a/truffe2/accounting_tools/templates/accounting_tools/invoice/list_json.html b/truffe2/accounting_tools/templates/accounting_tools/invoice/list_json.html
index 98a563ea..1d364dea 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/invoice/list_json.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/invoice/list_json.html
@@ -3,6 +3,6 @@
{% block bonus_buttons %}
{% ifhasright elem user 'DOWNLOAD_PDF' %}
-
+
{% endifhasright %}
{% endblock %}
diff --git a/truffe2/accounting_tools/templates/accounting_tools/invoice/pdf.html b/truffe2/accounting_tools/templates/accounting_tools/invoice/pdf.html
index cc2bda57..ca2df623 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/invoice/pdf.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/invoice/pdf.html
@@ -15,12 +15,12 @@
margin-right: 1cm;
height: 1cm;
}
-
+
@frame logoFrame {
-pdf-frame-content: logoFrameContent;
- top: 1.0cm;
- right: 1.2cm;
- width: 35%;
+ top: 1.2cm;
+ right: 0.5cm;
+ left: 16cm;
}
@frame headerFrame {
@@ -57,7 +57,6 @@
.headertable {
-pdf-keep-in-frame-mode: none;
width: 100%;
- height: 100%;
display: block;
font-size: 10px;
}
@@ -115,7 +114,7 @@
-
+
@@ -281,7 +280,7 @@ {% trans "Facture" %} {% t
-
+
{% trans "Attention: Ce BVR ne peut pas être utilisé pour un paiement aux guichets de la poste ou d'une banque" %}
diff --git a/truffe2/accounting_tools/templates/accounting_tools/invoice/show.html b/truffe2/accounting_tools/templates/accounting_tools/invoice/show.html
index f6b65592..3f91dfb2 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/invoice/show.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/invoice/show.html
@@ -3,7 +3,7 @@
{% block bonus_buttons %}
{% ifhasright obj user 'DOWNLOAD_PDF' %}
- PDF
+ PDF
{% endifhasright %}
{% endblock %}
diff --git a/truffe2/accounting_tools/templates/accounting_tools/providerinvoice/edit.html b/truffe2/accounting_tools/templates/accounting_tools/providerinvoice/edit.html
index f27b507c..87948a47 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/providerinvoice/edit.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/providerinvoice/edit.html
@@ -37,7 +37,7 @@
$('#id_currency').removeClass('form-control');
$('#id_currency').css('width', '100%').select2();
- $('#id_provider').parent().before().append(' Ajouter un fournisseur');
+ $('#id_provider').parent().before().append(' Ajouter un fournisseur');
update_accounts();
update_provider();
@@ -45,7 +45,7 @@
function update_accounts() {
- $.ajax('{% url 'accounting_core.views.account_available_list' %}?ypk=' + $('#input_ypk').val()).done(function (data) {
+ $.ajax('{% url 'accounting_core-views-account_available_list' %}?ypk=' + $('#input_ypk').val()).done(function (data) {
var options = '';
$.each(data.data, function (index, option) {
@@ -67,7 +67,7 @@
}
function update_provider() {
- $.ajax('{% url 'accounting_tools.views.provider_available_list' %}').done(function (data) {
+ $.ajax('{% url 'accounting_tools-views-provider_available_list' %}').done(function (data) {
var old_value = $('#id_provider').val();
diff --git a/truffe2/accounting_tools/templates/accounting_tools/providerinvoice/list_json.html b/truffe2/accounting_tools/templates/accounting_tools/providerinvoice/list_json.html
index 38f869f8..d07f998e 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/providerinvoice/list_json.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/providerinvoice/list_json.html
@@ -2,5 +2,5 @@
{% load i18n %}
{% block bonus_buttons %}
-
+
{% endblock %}
diff --git a/truffe2/accounting_tools/templates/accounting_tools/providerinvoice/pdf.html b/truffe2/accounting_tools/templates/accounting_tools/providerinvoice/pdf.html
index ada83933..70be6cd1 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/providerinvoice/pdf.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/providerinvoice/pdf.html
@@ -33,19 +33,19 @@ {% trans "Fa
{% trans "Visa de l'unité : " %} |
- {% if object.get_unit_signer %} {{ object.get_unit_signer.first_name }} {{ object.get_unit_signer.last_name }}{% endif %} |
+ {% if object.get_unit_signer %} {{ object.get_unit_signer.first_name }} {{ object.get_unit_signer.last_name }}{% endif %} |
| |
{% trans "Visa AGEPoly (1): " %} |
- {% if object.get_root_unit_signer_1 %} {{ object.get_root_unit_signer_1.first_name }} {{ object.get_root_unit_signer_1.last_name }}{% endif %} |
+ {% if object.get_root_unit_signer_1 %} {{ object.get_root_unit_signer_1.first_name }} {{ object.get_root_unit_signer_1.last_name }}{% endif %} |
| |
{% trans "Visa AGEPoly (2): " %} |
- {% if object.get_root_unit_signer_2 %} {{ object.get_root_unit_signer_2.first_name }} {{ object.get_root_unit_signer_2.last_name }}{% endif %} |
+ {% if object.get_root_unit_signer_2 %} {{ object.get_root_unit_signer_2.first_name }} {{ object.get_root_unit_signer_2.last_name }}{% endif %} |
diff --git a/truffe2/accounting_tools/templates/accounting_tools/providerinvoice/show.html b/truffe2/accounting_tools/templates/accounting_tools/providerinvoice/show.html
index 32ea110b..d40a8861 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/providerinvoice/show.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/providerinvoice/show.html
@@ -2,7 +2,7 @@
{% load i18n humanize %}
{% block bonus_buttons %}
- PDF
+ PDF
{% endblock %}
{% block post_lines %}
diff --git a/truffe2/accounting_tools/templates/accounting_tools/subvention/edit.html b/truffe2/accounting_tools/templates/accounting_tools/subvention/edit.html
index 8397aabd..85e72e05 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/subvention/edit.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/subvention/edit.html
@@ -62,7 +62,7 @@
});
function update_budget() {
- $.ajax('{% url 'accounting_main.views.budget_available_list' %}?ypk=' + $('#input_ypk').val() + '&upk=' + $('#input_upk').val()).done(function (data) {
+ $.ajax('{% url 'accounting_main-views-budget_available_list' %}?ypk=' + $('#input_ypk').val() + '&upk=' + $('#input_upk').val()).done(function (data) {
$('#id_linked_budget option').remove();
$('#id_linked_budget').append(
$('').val('').html('---------')
diff --git a/truffe2/accounting_tools/templates/accounting_tools/subvention/list.html b/truffe2/accounting_tools/templates/accounting_tools/subvention/list.html
index 0fb04da7..79d32d65 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/subvention/list.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/subvention/list.html
@@ -2,18 +2,18 @@
{% load i18n rights_extras %}
{% block bonus_year_updated %}
- $('#export-year').attr('href', '{% url 'accounting_tools.views.export_demands_yearly' 9999429999 %}'.replace(9999429999, pk));
+ $('#export-year').attr('href', '{% url 'accounting_tools-views-export_demands_yearly' 9999429999 %}'.replace(9999429999, pk));
{% endblock %}
{% block extrabuttons %}
{% ifhasright Model user 'EXPORT' %}
-
+
{% trans "Exporter cette année" %}
{% endifhasright %}
{% ifhasright Model user 'EXPORT' %}
-
+
{% trans "Tout exporter" %}
diff --git a/truffe2/accounting_tools/templates/accounting_tools/withdrawal/list_json.html b/truffe2/accounting_tools/templates/accounting_tools/withdrawal/list_json.html
index c2c7e9d1..5f39e232 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/withdrawal/list_json.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/withdrawal/list_json.html
@@ -2,5 +2,5 @@
{% load i18n %}
{% block bonus_buttons %}
-
+
{% endblock %}
diff --git a/truffe2/accounting_tools/templates/accounting_tools/withdrawal/show.html b/truffe2/accounting_tools/templates/accounting_tools/withdrawal/show.html
index 5ced4ff7..e366dc5a 100644
--- a/truffe2/accounting_tools/templates/accounting_tools/withdrawal/show.html
+++ b/truffe2/accounting_tools/templates/accounting_tools/withdrawal/show.html
@@ -3,6 +3,6 @@
{% block bonus_buttons %}
-{% trans "Voir le PDF" %}
+{% trans "Voir le PDF" %}
{% endblock %}
diff --git a/truffe2/accounting_tools/tests.py b/truffe2/accounting_tools/tests.py
index 7ce503c2..3ab449dc 100644
--- a/truffe2/accounting_tools/tests.py
+++ b/truffe2/accounting_tools/tests.py
@@ -1,3 +1,209 @@
-from django.test import TestCase
+# -*- coding: utf-8 -*-
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
-# Create your tests here.
+Replace this with more appropriate tests for your application.
+"""
+
+from main.test_tools import TruffeTestAbstract
+from os.path import join, dirname
+
+
+class AccountingToolsNoLoginTest(TruffeTestAbstract):
+
+ def test_subvention_list(self):
+ self.call_check_redirect('/accounting/tools/subvention/')
+
+ def test_subvention_mayi(self):
+ self.call_check_redirect('/accounting/tools/subvention/mayi')
+
+ def test_subvention_json(self):
+ self.call_check_redirect('/accounting/tools/subvention/json')
+
+ def test_subvention_deleted(self):
+ self.call_check_redirect('/accounting/tools/subvention/deleted')
+
+ def test_subvention_logs(self):
+ self.call_check_redirect('/accounting/tools/subvention/logs')
+
+ def test_subvention_logs_json(self):
+ self.call_check_redirect('/accounting/tools/subvention/logs/json')
+
+ def test_subvention_add(self):
+ self.call_check_redirect('/accounting/tools/subvention/~/edit')
+
+ def test_subvention_edit(self):
+ self.call_check_redirect('/accounting/tools/subvention/1/edit')
+
+ def test_subvention_delete(self):
+ self.call_check_redirect('/accounting/tools/subvention/1/delete')
+
+ def test_subvention_show(self):
+ self.call_check_redirect('/accounting/tools/subvention/1/')
+
+ def test_subvention_export(self):
+ self.call_check_redirect('/accounting/tools/subvention/1/export')
+
+ def test_subvention_export_all(self):
+ self.call_check_redirect('/accounting/tools/subvention/export_all')
+
+ def test_invoice_pdf(self):
+ self.call_check_redirect('/accounting/tools/invoice/1/pdf/')
+
+ def test_invoice_bvr(self):
+ self.call_check_redirect('/accounting/tools/invoice/1/bvr/')
+
+ def test_withdrawal_pdf(self):
+ self.call_check_redirect('/accounting/tools/withdrawal/1/pdf/')
+
+ def test_withdrawal_list(self):
+ self.call_check_redirect('/accounting/tools/withdrawal/list/')
+
+ def test_withdrawal_infos(self):
+ self.call_check_redirect('/accounting/tools/withdrawal/1/infos/')
+
+ def test_internaltransfer_pdf(self):
+ self.call_check_redirect('/accounting/tools/internaltransfer/1/pdf/')
+
+ def test_expenseclaim_pdf(self):
+ self.call_check_redirect('/accounting/tools/expenseclaim/1/pdf/')
+
+ def test_cashbook_pdf(self):
+ self.call_check_redirect('/accounting/tools/cashbook/1/pdf/')
+
+ def test_financialprovider_list(self):
+ self.call_check_redirect('/accounting/tools/financialprovider/list/')
+
+ def test_providerinvoice_pdf(self):
+ self.call_check_redirect('/accounting/tools/providerinvoice/1/pdf/')
+
+ def test_internaltransfer_csv(self):
+ self.call_check_redirect('/accounting/tools/internaltransfer/1/csv/')
+
+ def test_expenseclaim_csv(self):
+ self.call_check_redirect('/accounting/tools/expenseclaim/1/csv/')
+
+ def test_cashbook_csv(self):
+ self.call_check_redirect('/accounting/tools/cashbook/1/csv/')
+
+ def test_subventionfile_upload(self):
+ self.call_check_redirect('/accounting/tools/subventionfile/upload')
+
+ def test_subventionfile_delete(self):
+ self.call_check_redirect('/accounting/tools/subventionfile/1/delete')
+
+ def test_subventionfile_get(self):
+ self.call_check_redirect('/accounting/tools/subventionfile/1/get/')
+
+ def test_subventionfile_thumbnail(self):
+ self.call_check_redirect('/accounting/tools/subventionfile/1/thumbnail')
+
+
+class AccountingToolsWithLoginTest(TruffeTestAbstract):
+
+ login_username = 'admin'
+
+ def test_subvention_mayi(self):
+ self.call_check_json('/accounting/tools/subvention/mayi')
+
+ def test_subvention_json(self):
+ self.call_check_json('/accounting/tools/subvention/json', data={'upk':1})
+
+ def test_subvention_deleted(self):
+ from accounting_tools.models import Subvention
+ Subvention(id=2, name='bad subvention', amount_asked=456, kind='subvention', linked_budget_id=1, accounting_year_id=1, unit_id=1, deleted=True).save()
+ self.call_check_html('/accounting/tools/subvention/deleted', data={'upk':1})
+ self.call_check_redirect('/accounting/tools/subvention/deleted', method='post', data={'upk':1, 'pk':2}, redirect_url='/accounting/tools/subvention/')
+
+ def test_subvention_logs(self):
+ self.call_check_html('/accounting/tools/subvention/logs')
+
+ def test_subvention_logs_json(self):
+ self.call_check_json('/accounting/tools/subvention/logs/json')
+
+ def test_subvention_add(self):
+ from accounting_tools.models import Subvention
+ Subvention.objects.get(id=1).delete()
+ self.call_check_html('/accounting/tools/subvention/~/edit', data={'ypk':1})
+ self.call_check_redirect('/accounting/tools/subvention/~/edit', method='post', redirect_url='/accounting/tools/subvention/2/',
+ data={'ypk':1, "name":"new", "amount_asked":123, "kind":"subvention", 'linked_budget':1, 'unit':1})
+
+ def test_subvention_edit(self):
+ self.call_check_html('/accounting/tools/subvention/1/edit', data={'ypk':1})
+ self.call_check_redirect('/accounting/tools/subvention/1/edit', method='post', redirect_url='/accounting/tools/subvention/1/',
+ data={'ypk':1, "name":"new", "amount_asked":123, "kind":"subvention", 'linked_budget':1, 'unit':1})
+
+ def test_subvention_delete(self):
+ self.call_check_html('/accounting/tools/subvention/1/delete')
+ self.call_check_redirect('/accounting/tools/subvention/1/delete', method='post', data={'do':'it'}, redirect_url='/accounting/tools/subvention/')
+
+ def test_subvention_show(self):
+ self.call_check_html('/accounting/tools/subvention/1/')
+
+ def test_subvention_export(self):
+ self.call_check_pdf('/accounting/tools/subvention/1/export')
+
+ def test_subvention_export_all(self):
+ self.call_check_pdf('/accounting/tools/subvention/export_all')
+
+ def test_invoice_pdf(self):
+ self.call_check_pdf('/accounting/tools/invoice/1/pdf/')
+
+ def test_invoice_bvr(self):
+ self.call('/accounting/tools/invoice/1/bvr/')
+ self.assertEqual(self.content_type, "image/png")
+
+ def test_withdrawal_pdf(self):
+ self.call_check_pdf('/accounting/tools/withdrawal/1/pdf/')
+
+ def test_withdrawal_list(self):
+ self.call_check_json('/accounting/tools/withdrawal/list/', data={'upk':1, 'ypk':1})
+
+ def test_withdrawal_infos(self):
+ self.call_check_json('/accounting/tools/withdrawal/1/infos/')
+
+ def test_internaltransfer_pdf(self):
+ self.call_check_pdf('/accounting/tools/internaltransfer/1/pdf/')
+
+ def test_expenseclaim_pdf(self):
+ self.call_check_pdf('/accounting/tools/expenseclaim/1/pdf/')
+
+ def test_cashbook_pdf(self):
+ self.call_check_pdf('/accounting/tools/cashbook/1/pdf/')
+
+ def test_financialprovider_list(self):
+ self.call_check_json('/accounting/tools/financialprovider/list/')
+
+ def test_providerinvoice_pdf(self):
+ self.call_check_pdf('/accounting/tools/providerinvoice/1/pdf/')
+
+ def test_internaltransfer_csv(self):
+ self.call_check_text('/accounting/tools/internaltransfer/1/csv/')
+
+ def test_expenseclaim_csv(self):
+ self.call_check_text('/accounting/tools/expenseclaim/1/csv/')
+
+ def test_cashbook_csv(self):
+ self.call_check_text('/accounting/tools/cashbook/1/csv/')
+
+ def test_subventionfile_upload(self):
+ sess = self.session
+ sess.update({'pca_files_abc': []})
+ sess.save()
+ with open(join(dirname(dirname(__file__)), 'media', 'uploads', 'files', 'bigbox.mp3'), 'rb') as file_upload:
+ self.call_check_json('/accounting/tools/subventionfile/upload?key=abc', data={'files[]':file_upload}, method="post")
+
+ def test_subventionfile_delete(self):
+ sess = self.session
+ sess.update({'pca_files_abc': [1]})
+ sess.save()
+ self.call_check_text('/accounting/tools/subventionfile/1/delete?key=abc')
+
+ def test_subventionfile_get(self):
+ self.call('/accounting/tools/subventionfile/1/get/', data={'down':1})
+ self.assertEqual(self.content_type, "image/png")
+
+ def test_subventionfile_thumbnail(self):
+ self.call('/accounting/tools/subventionfile/1/thumbnail')
+ self.assertEqual(self.content_type, "image/jpeg")
diff --git a/truffe2/accounting_tools/urls.py b/truffe2/accounting_tools/urls.py
index 743a2ebc..470f863e 100644
--- a/truffe2/accounting_tools/urls.py
+++ b/truffe2/accounting_tools/urls.py
@@ -1,29 +1,31 @@
# -*- coding: utf-8 -*-
-from django.conf.urls import patterns, url
-
-
-urlpatterns = patterns(
- 'accounting_tools.views',
-
- url(r'^subvention/(?P[0-9]+)/export$', 'export_demands_yearly'),
- url(r'^subvention/export_all$', 'export_all_demands'),
-
- url(r'^invoice/(?P[0-9]+)/pdf/', 'invoice_pdf'),
- url(r'^invoice/(?P[0-9]+)/bvr/', 'invoice_bvr'),
-
- url(r'^withdrawal/(?P[0-9]+)/pdf/', 'withdrawal_pdf'),
- url(r'^withdrawal/list/', 'withdrawal_available_list'),
- url(r'^withdrawal/(?P[0-9]+)/infos/', 'get_withdrawal_infos'),
-
- url(r'^internaltransfer/(?P[0-9,]+)/pdf/', 'internaltransfer_pdf'),
- url(r'^expenseclaim/(?P[0-9]+)/pdf/', 'expenseclaim_pdf'),
- url(r'^cashbook/(?P[0-9]+)/pdf/', 'cashbook_pdf'),
-
- url(r'^financialprovider/list/', 'provider_available_list'),
- url(r'^providerinvoice/(?P[0-9]+)/pdf/', 'provider_invoice_pdf'),
+from django.urls import re_path
+from accounting_tools.views import cashbook_csv, expenseclaim_csv, \
+ internaltransfer_csv, provider_invoice_pdf, export_demands_yearly, \
+ export_all_demands, provider_available_list, \
+ cashbook_pdf, expenseclaim_pdf, internaltransfer_pdf, get_withdrawal_infos, \
+ withdrawal_available_list, withdrawal_pdf, invoice_bvr, invoice_pdf
+
+urlpatterns = [
+ re_path(r'^subvention/(?P[0-9]+)/export$', export_demands_yearly, name='accounting_tools-views-export_demands_yearly'),
+ re_path(r'^subvention/export_all$', export_all_demands, name='accounting_tools-views-export_all_demands'),
+
+ re_path(r'^invoice/(?P[0-9]+)/pdf/', invoice_pdf, name='accounting_tools-views-invoice_pdf'),
+ re_path(r'^invoice/(?P[0-9]+)/bvr/', invoice_bvr, name='accounting_tools-views-invoice_bvr'),
+
+ re_path(r'^withdrawal/(?P[0-9]+)/pdf/', withdrawal_pdf, name='accounting_tools-views-withdrawal_pdf'),
+ re_path(r'^withdrawal/list/', withdrawal_available_list, name='accounting_tools-views-withdrawal_available_list'),
+ re_path(r'^withdrawal/(?P[0-9]+)/infos/', get_withdrawal_infos, name='accounting_tools-views-get_withdrawal_infos'),
+
+ re_path(r'^internaltransfer/(?P[0-9,]+)/pdf/', internaltransfer_pdf, name='accounting_tools-views-internaltransfer_pdf'),
+ re_path(r'^expenseclaim/(?P[0-9]+)/pdf/', expenseclaim_pdf, name='accounting_tools-views-expenseclaim_pdf'),
+ re_path(r'^cashbook/(?P[0-9]+)/pdf/', cashbook_pdf, name='accounting_tools-views-cashbook_pdf'),
+
+ re_path(r'^financialprovider/list/', provider_available_list, name='accounting_tools-views-provider_available_list'),
+ re_path(r'^providerinvoice/(?P[0-9]+)/pdf/', provider_invoice_pdf, name='accounting_tools-views-provider_invoice_pdf'),
- url(r'^internaltransfer/(?P[0-9,]+)/csv/', 'internaltransfer_csv'),
- url(r'^expenseclaim/(?P[0-9,]+)/csv/', 'expenseclaim_csv'),
- url(r'^cashbook/(?P[0-9,]+)/csv/', 'cashbook_csv'),
-)
+ re_path(r'^internaltransfer/(?P[0-9,]+)/csv/', internaltransfer_csv, name='accounting_tools-views-internaltransfer_csv'),
+ re_path(r'^expenseclaim/(?P[0-9,]+)/csv/', expenseclaim_csv, name='accounting_tools-views-expenseclaim_csv'),
+ re_path(r'^cashbook/(?P[0-9,]+)/csv/', cashbook_csv, name='accounting_tools-views-cashbook_csv'),
+]
diff --git a/truffe2/accounting_tools/views.py b/truffe2/accounting_tools/views.py
index 1cd2e065..e472e36e 100644
--- a/truffe2/accounting_tools/views.py
+++ b/truffe2/accounting_tools/views.py
@@ -4,7 +4,7 @@
from django.db.models import Q, Sum
from django.http import Http404, HttpResponse
from django.utils.text import slugify
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
from django.shortcuts import get_object_or_404, redirect
from django.conf import settings
from django.contrib import messages
@@ -110,7 +110,7 @@ def invoice_bvr(request, pk):
img = invoice.generate_bvr()
- response = HttpResponse(mimetype="image/png")
+ response = HttpResponse(content_type="image/png")
img.save(response, 'png')
return response
@@ -133,7 +133,7 @@ def internaltransfer_pdf(request, pk):
from accounting_tools.models import InternalTransfer
transfers = [get_object_or_404(InternalTransfer, pk=pk_, deleted=False) for pk_ in filter(lambda x: x, pk.split(','))]
- transfers = filter(lambda tr: tr.rights_can('SHOW', request.user), transfers)
+ transfers = [tr for tr in transfers if tr.rights_can('SHOW', request.user)]
if not transfers:
raise Http404
@@ -149,11 +149,11 @@ def internaltransfer_csv(request, pk):
from app.utils import UnicodeCSVWriter
transfers = [get_object_or_404(InternalTransfer, pk=pk_, deleted=False) for pk_ in filter(lambda x: x, pk.split(','))]
- transfers = filter(lambda tr: tr.rights_can('SHOW', request.user), transfers)
+ transfers = [tr for tr in transfers if tr.rights_can('SHOW', request.user)]
response = HttpResponse(content_type='text/csv; charset=cp1252')
if len(transfers) == 1:
- response['Content-Disposition'] = 'attachment; filename="Transfert Interne {0} .csv"'.format(slugify(unicode(transfers[0])))
+ response['Content-Disposition'] = 'attachment; filename="Transfert Interne {0} .csv"'.format(slugify(str(transfers[0])))
else:
response['Content-Disposition'] = 'attachment; filename="transfers_internes_{0}.csv"'.format(datetime.date.today().strftime("%d-%m-%Y"))
@@ -164,15 +164,15 @@ def internaltransfer_csv(request, pk):
line_number = 1
for transfer in transfers:
if not transfer.status[0] in ['2', '3']:
- messages.warning(request, _(u'Internal Transfer {0} pas à l\'état à comptabiliser/en comptabilisation').format(unicode(transfer)))
+ messages.warning(request, _(u'Internal Transfer {0} pas à l\'état à comptabiliser/en comptabilisation').format(str(transfer)))
if len(transfers) == 1:
- return redirect('accounting_tools.views.internaltransfer_show', transfer.pk)
+ return redirect('accounting_tools-views-internaltransfer_show', transfer.pk)
else:
- return redirect('accounting_tools.views.internaltransfer_list')
+ return redirect('accounting_tools-views-internaltransfer_list')
- header_row = [u'0', line_number, transfer.transfert_date.strftime(u"%d.%m.%Y"), 100000 + transfer.pk, transfer.name, transfer.amount, transfer.amount, '', '', u'CHF', 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', u'INT_TF#{0}'.format(unicode(transfer.pk)), '']
- debit_row = [u'1', '', '', '', '', '', '', '', '', '', '', '', u'1', line_number, transfer.account.account_number, u'CHF', u'{0} - Débit'.format(transfer.name), transfer.amount, '', 0, '', u'Non Soumis à la TVA', u'Débit', '', transfer.transfert_date.strftime(u"%d.%m.%Y"), 0, transfer.amount, transfer.amount, 0, u'INT_TF#{0}'.format(unicode(transfer.pk)), transfer.cost_center_from.account_number]
- credit_row = [u'2', '', '', '', '', '', '', '', '', '', '', '', u'2', line_number, transfer.account.account_number, u'CHF', u'{0} - Crédit'.format(transfer.name), transfer.amount, '', 0, '', u'Non Soumis à la TVA', u'Crédit', '', transfer.transfert_date.strftime(u"%d.%m.%Y"), 0, transfer.amount, transfer.amount, 0, u'INT_TF#{0}'.format(unicode(transfer.pk)), transfer.cost_center_to.account_number]
+ header_row = [u'0', line_number, transfer.transfert_date.strftime(u"%d.%m.%Y"), 100000 + transfer.pk, transfer.name, transfer.amount, transfer.amount, '', '', u'CHF', 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', u'INT_TF#{0}'.format(str(transfer.pk)), '']
+ debit_row = [u'1', '', '', '', '', '', '', '', '', '', '', '', u'1', line_number, transfer.account.account_number, u'CHF', u'{0} - Débit'.format(transfer.name), transfer.amount, '', 0, '', u'Non Soumis à la TVA', u'Débit', '', transfer.transfert_date.strftime(u"%d.%m.%Y"), 0, transfer.amount, transfer.amount, 0, u'INT_TF#{0}'.format(str(transfer.pk)), transfer.cost_center_from.account_number]
+ credit_row = [u'2', '', '', '', '', '', '', '', '', '', '', '', u'2', line_number, transfer.account.account_number, u'CHF', u'{0} - Crédit'.format(transfer.name), transfer.amount, '', 0, '', u'Non Soumis à la TVA', u'Crédit', '', transfer.transfert_date.strftime(u"%d.%m.%Y"), 0, transfer.amount, transfer.amount, 0, u'INT_TF#{0}'.format(str(transfer.pk)), transfer.cost_center_to.account_number]
writer.writerows([header_row, debit_row, credit_row])
line_number = line_number + 1
return response
@@ -200,7 +200,7 @@ def expenseclaim_csv(request, pk):
response = HttpResponse(content_type='text/csv; charset=cp1252')
if len(expenseclaims) == 1:
- response['Content-Disposition'] = 'attachment; filename="NDF - {0}.csv"'.format(slugify(unicode(expenseclaims[0])))
+ response['Content-Disposition'] = 'attachment; filename="NDF - {0}.csv"'.format(slugify(str(expenseclaims[0])))
else:
response['Content-Disposition'] = 'attachment; filename="notes_de_frais_{0}.csv"'.format(datetime.date.today().strftime("%d-%m-%Y"))
@@ -215,13 +215,13 @@ def expenseclaim_csv(request, pk):
if not expenseclaim.rights_can('SHOW', request.user):
raise Http404
if not expenseclaim.status[0] in ['4', '5', '6']:
- messages.warning(request, _(u'NDF {0} pas à l\'état à comptabiliser/en comptabilisation').format(unicode(expenseclaim)))
+ messages.warning(request, _(u'NDF {0} pas à l\'état à comptabiliser/en comptabilisation').format(str(expenseclaim)))
if len(expenseclaims) == 1:
- return redirect('accounting_tools.views.expenseclaim_show', expenseclaim.pk)
+ return redirect('accounting_tools-views-expenseclaim_show', expenseclaim.pk)
else:
- return redirect('accounting_tools.views.expenseclaim_list')
+ return redirect('accounting_tools-views-expenseclaim_list')
- writer.writerow([u'0', expenseclaim_count, u'Crédit', 300000 + expenseclaim.pk, expenseclaim.logs.first().when.strftime(u"%d.%m.%Y"), expenseclaim.user.username, u'CHF', 0, u'2000', u'NDF - {0}'.format(unicode(expenseclaim)), expenseclaim.logs.first().when.strftime(u"%d.%m.%Y"), '', '', '', '', '', '', '', '', u'NDF#{0}'.format(unicode(expenseclaim.pk))])
+ writer.writerow([u'0', expenseclaim_count, u'Crédit', 300000 + expenseclaim.pk, expenseclaim.logs.first().when.strftime(u"%d.%m.%Y"), expenseclaim.user.username, u'CHF', 0, u'2000', u'NDF - {0}'.format(str(expenseclaim)), expenseclaim.logs.first().when.strftime(u"%d.%m.%Y"), '', '', '', '', '', '', '', '', u'NDF#{0}'.format(str(expenseclaim.pk))])
provider_to_export.append(expenseclaim.user)
first = True
line_count = 1
@@ -246,7 +246,7 @@ def expenseclaim_csv(request, pk):
address_complete = u''
for adr in address_lines:
- address_complete += unicode(adr)
+ address_complete += str(adr)
writer.writerow([provider.first_name, provider.last_name, address_lines[0], city, zip, provider.username, provider.email, provider.nom_banque, provider.iban_ou_ccp, address_complete])
return response
@@ -265,7 +265,7 @@ def expenseclaim_line_write(writer, expenseclaim, line, line_number, last_line,
tva_string = u'Soumis'
tva.code = 'TOSET'
- row = [u'1', '', '', '', '', '', '', '', '', '', '', expenseclaim_number * 10000 + line_number, line_number, line.value, u'NDF - {0} - {1}'.format(unicode(expenseclaim), line.label), line.account.account_number, tva_string, tva.code, tva.value, u'OK', u'NDF#{0}'.format(unicode(expenseclaim.pk)), expenseclaim.costcenter.account_number]
+ row = [u'1', '', '', '', '', '', '', '', '', '', '', expenseclaim_number * 10000 + line_number, line_number, line.value, u'NDF - {0} - {1}'.format(str(expenseclaim), line.label), line.account.account_number, tva_string, tva.code, tva.value, u'OK', u'NDF#{0}'.format(str(expenseclaim.pk)), expenseclaim.costcenter.account_number]
if last_line: # la dernière écriture doit être de type 2
row[0] = u'2'
@@ -297,7 +297,7 @@ def cashbook_csv(request, pk):
response = HttpResponse(content_type='text/csv; charset=cp1252')
if len(cashbooks) == 1:
- response['Content-Disposition'] = 'attachment; filename="JDC - {0}.csv"'.format(slugify(unicode(cashbooks[0])))
+ response['Content-Disposition'] = 'attachment; filename="JDC - {0}.csv"'.format(slugify(str(cashbooks[0])))
else:
response['Content-Disposition'] = 'attachment; filename="journaux_de_caisse_{0}.csv"'.format(datetime.date.today().strftime("%d-%m-%Y"))
@@ -311,19 +311,19 @@ def cashbook_csv(request, pk):
if not cashbook.rights_can('SHOW', request.user):
raise Http404
if not cashbook.status[0] in ['4', '5', '6']:
- messages.warning(request, _(u'JDC {0} pas à l\'état à comptabiliser/en comptabilisation').format(unicode(cashbook)))
+ messages.warning(request, _(u'JDC {0} pas à l\'état à comptabiliser/en comptabilisation').format(str(cashbook)))
if len(cashbooks) == 1:
- return redirect('accounting_tools.views.cashbook_show', cashbook.pk)
+ return redirect('accounting_tools-views-cashbook_show', cashbook.pk)
else:
- return redirect('accounting_tools.views.cashbook_list')
+ return redirect('accounting_tools-views-cashbook_list')
if not cashbook.total_incomes() == cashbook.total_outcomes():
- messages.warning(request, _(u'JDC {0} pas a 0, merci de le mettre a 0').format(unicode(cashbook)))
+ messages.warning(request, _(u'JDC {0} pas a 0, merci de le mettre a 0').format(str(cashbook)))
if len(cashbooks) == 1:
- return redirect('accounting_tools.views.cashbook_show', cashbook.pk)
+ return redirect('accounting_tools-views-cashbook_show', cashbook.pk)
else:
- return redirect('accounting_tools.views.cashbook_list')
+ return redirect('accounting_tools-views-cashbook_list')
- writer.writerow([u'0', cashbook_count, cashbook.get_lines()[0].date.strftime(u"%d.%m.%Y"), 200000 + cashbook.pk, cashbook.name, cashbook.total_incomes(), cashbook.total_incomes(), '', '', u'CHF', 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', u'CASHBOOK#{0}'.format(unicode(cashbook.pk))])
+ writer.writerow([u'0', cashbook_count, cashbook.get_lines()[0].date.strftime(u"%d.%m.%Y"), 200000 + cashbook.pk, cashbook.name, cashbook.total_incomes(), cashbook.total_incomes(), '', '', u'CHF', 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', u'CASHBOOK#{0}'.format(str(cashbook.pk))])
first = True
line_count = 1
firstline = CashBookLine()
@@ -358,7 +358,7 @@ def cashbook_line_write(writer, cashbook, line, line_number, last_line, cashbook
tva_string = u'Soumis'
tva.code = 'TOSET'
- row = [u'1', '', '', '', '', '', '', '', '', '', '', '', line_number, cashbook_number, line.account.account_number, u'CHF', u'{0} {1}'.format(cashbook.name, line.label), line.value_ttc, tva.code, tva.value, '', tva_string, type, '', line.date.strftime(u"%d.%m.%Y"), 0, line.value_ttc, line.value_ttc, 100, u'CASHBOOK#{0}'.format(unicode(cashbook.pk)), cashbook.costcenter.account_number]
+ row = [u'1', '', '', '', '', '', '', '', '', '', '', '', line_number, cashbook_number, line.account.account_number, u'CHF', u'{0} {1}'.format(cashbook.name, line.label), line.value_ttc, tva.code, tva.value, '', tva_string, type, '', line.date.strftime(u"%d.%m.%Y"), 0, line.value_ttc, line.value_ttc, 100, u'CASHBOOK#{0}'.format(str(cashbook.pk)), cashbook.costcenter.account_number]
line_number = line_number + 1
@@ -400,7 +400,7 @@ def withdrawal_available_list(request):
withdrawals = filter(lambda withdrawal: withdrawal.rights_can('SHOW', request.user), list(withdrawals))
- retour = {'data': [{'pk': withdrawal.pk, 'name': withdrawal.__unicode__(), 'used': withdrawal.status == '3_used'} for withdrawal in withdrawals]}
+ retour = {'data': [{'pk': withdrawal.pk, 'name': withdrawal.__str__(), 'used': withdrawal.status == '3_used'} for withdrawal in withdrawals]}
return HttpResponse(json.dumps(retour), content_type='application/json')
diff --git a/truffe2/app/ldaputils.py b/truffe2/app/ldaputils.py
index 7b04c6a0..ed070f3d 100644
--- a/truffe2/app/ldaputils.py
+++ b/truffe2/app/ldaputils.py
@@ -19,7 +19,7 @@ def get_attrs_of_sciper(sciper):
email = someone[1].get('mail', [''])[0]
if not name:
- print "No user in LDAP with sciper {}".format(sciper)
+ print("No user in LDAP with sciper {}".format(sciper))
return (name, firstname, email)
diff --git a/truffe2/app/settings.py b/truffe2/app/settings.py
index 52f28f06..20556bc9 100644
--- a/truffe2/app/settings.py
+++ b/truffe2/app/settings.py
@@ -2,20 +2,12 @@
# Django settings for truffe2 project.
-from django.utils.translation import ugettext_lazy as _
-
-from os.path import abspath, dirname, join, normpath
-DJANGO_ROOT = dirname(abspath(__file__)) + '/../'
+from django.utils.translation import gettext_lazy as _
+from os.path import abspath, dirname, join
+DJANGO_ROOT = dirname(dirname(abspath(__file__)))
DEBUG = True
-TEMPLATE_DEBUG = DEBUG
-
-ADMINS = (
- # ('Your Name', 'your_email@example.com'),
-)
-
-MANAGERS = ADMINS
# Hosts/domain names that are valid for this site; required if DEBUG is False
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
@@ -28,7 +20,7 @@
TIME_ZONE = 'Europe/Zurich'
# Language code for this installation. All choices can be found here:
-# http://www.i18nguy.com/unicode/language-identifiers.html
+# http://www.i18nguy.com/str/language-identifiers.html
LANGUAGE_CODE = 'fr-ch'
LANGUAGES = (
@@ -37,7 +29,7 @@
)
LOCALE_PATHS = (
- normpath(join(DJANGO_ROOT, 'locale')) + '/',
+ join(DJANGO_ROOT, 'locale'),
)
SITE_ID = 1
@@ -55,7 +47,7 @@
# Absolute filesystem path to the directory that will hold user-uploaded files.
# Example: "/var/www/example.com/media/"
-MEDIA_ROOT = normpath(join(DJANGO_ROOT, 'media')) + '/'
+MEDIA_ROOT = join(DJANGO_ROOT, 'media')
# URL that handles the media served from MEDIA_ROOT. Make sure to use a
# trailing slash.
@@ -66,7 +58,7 @@
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
# Example: "/var/www/example.com/static/"
-STATIC_ROOT = normpath(join(DJANGO_ROOT, 'static')) + '/'
+STATIC_ROOT = join(DJANGO_ROOT, 'static')
# URL prefix for static files.
# Example: "http://example.com/static/", "http://static.example.com/"
@@ -87,16 +79,38 @@
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
)
-# List of callables that know how to import templates from various sources.
-TEMPLATE_LOADERS = (
- 'django.template.loaders.filesystem.Loader',
- 'django.template.loaders.app_directories.Loader',
-# 'django.template.loaders.eggs.Loader',
-)
+# TEMPLATE configuration
+TEMPLATES = [{
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
+ # Always use forward slashes, even on Windows.
+ # Don't forget to use absolute paths, not relative paths.
+ 'DIRS' : (join(DJANGO_ROOT, 'templates'),),
+ 'OPTIONS' : {
+ 'debug' : DEBUG,
+ 'loaders' : (
+ 'django.template.loaders.filesystem.Loader',
+ 'django.template.loaders.app_directories.Loader',
+ # 'django.template.loaders.eggs.Loader',
+ ),
+ 'context_processors' : ("django.contrib.auth.context_processors.auth",
+ "django.template.context_processors.debug",
+ "django.template.context_processors.i18n",
+ "django.template.context_processors.media",
+ "django.template.context_processors.static",
+ "django.template.context_processors.request",
+ "django.template.context_processors.tz",
+ "django.contrib.messages.context_processors.messages",
+ "app.utils.add_current_unit",
+ "app.utils.add_current_year",
+ "notifications.views.notifications_count",
+ ),
+ }
+}]
-MIDDLEWARE_CLASSES = (
- 'django.middleware.common.CommonMiddleware',
+MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
+ 'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
@@ -110,13 +124,6 @@
# Python dotted path to the WSGI application used by Django's runserver.
WSGI_APPLICATION = 'app.wsgi.application'
-TEMPLATE_DIRS = (
- # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
- # Always use forward slashes, even on Windows.
- # Don't forget to use absolute paths, not relative paths.
- normpath(join(DJANGO_ROOT, 'templates')) + '/'
-)
-
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
@@ -126,7 +133,6 @@
'django.contrib.messages',
'django.contrib.staticfiles',
- 'south',
'bootstrap3',
'impersonate',
'multiselectfield',
@@ -136,7 +142,7 @@
'celery_haystack',
'truffe',
-
+ 'generic',
'main',
'users',
'units',
@@ -147,11 +153,8 @@
'accounting_core',
'accounting_main',
'accounting_tools',
-
'members',
'vehicles',
-
- 'generic',
)
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
@@ -191,6 +194,7 @@
TEQUILA_SERVICE = 'Truffe2 - L\'intranet de l\'AGEPoly' # Title used in tequila
TEQUILA_AUTOCREATE = True # Auto create users ?
TEQUILA_FAILURE = '/users/login' # Where to redirect user if there is a problem
+TEQUILA_ALLOW_GUEST = False # allow EPFL guest (GXXXXX) to connect (used for test)
LOGIN_REDIRECT_URL = '/'
@@ -209,19 +213,6 @@
DATETIME_FORMAT = "d.m.Y H:i:s"
USE_TZ = True
-TEMPLATE_CONTEXT_PROCESSORS = ("django.contrib.auth.context_processors.auth",
- "django.core.context_processors.debug",
- "django.core.context_processors.i18n",
- "django.core.context_processors.media",
- "django.core.context_processors.static",
- "django.core.context_processors.request",
- "django.core.context_processors.tz",
- "django.contrib.messages.context_processors.messages",
- "app.utils.add_current_unit",
- "app.utils.add_current_year",
- "notifications.views.notifications_count",
-)
-
LDAP = 'ldap://ldap.epfl.ch:389'
ROOT_UNIT_PK = 1
@@ -229,20 +220,14 @@
PRESIDENT_ROLE_PK = 1
CS_ACCOUNT_NUMBER = "1020 -" # Label of account for Credit Suisse
-
AUTO_RLC_UNIT_PK = 7 # The EPFL "Acces RLC" unit truffe's pk
AUTO_RLC_TAG = u"[Auto]" # The tag to identify our accreds
AUTO_RLC_COMS_ROLES = [1, 3] # The roles used to give access for commissions
AUTO_RLC_ROOT_ROLES = [1, ] # The roles used to give access for root unit
AUTO_RLC_GIVEN_ROLE = 15
-
-SOUTH_MIGRATION_MODULES = {
- 'easy_thumbnails': 'easy_thumbnails.south_migrations',
-}
-
-SENDFILE_BACKEND = 'sendfile.backends.simple'
-
+SENDFILE_BACKEND = 'django_sendfile.backends.simple'
+SENDFILE_ROOT = '/'
THUMBNAIL_PROCESSORS = (
'easy_thumbnails.processors.colorspace',
@@ -257,7 +242,6 @@
FORMAT_MODULE_PATH = 'app.formats'
-
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
@@ -274,7 +258,7 @@
EMAIL_FROM = 'truffe2@epfl.ch'
try:
- from settingsLocal import *
+ from app.settingsLocal import *
except ImportError:
raise
diff --git a/truffe2/app/tequila.py b/truffe2/app/tequila.py
index bd74f3ef..1f5d5650 100644
--- a/truffe2/app/tequila.py
+++ b/truffe2/app/tequila.py
@@ -4,14 +4,14 @@
# (C) Maximilien Cuony 2010
# BSD License
-import urllib
+import urllib.request
import re
from django.http import HttpResponseRedirect
from django.contrib.auth import get_user_model
from django.contrib.auth import login as auth_login, authenticate
from django.conf import settings
-from django.utils.http import is_safe_url
-
+from django.utils.http import url_has_allowed_host_and_scheme
+from django.utils.timezone import now
User = get_user_model()
@@ -20,8 +20,10 @@ def get_request_key(request):
"""Ask tequla server for the key"""
params = "urlaccess=" + request.build_absolute_uri() + "\nservice=" + settings.TEQUILA_SERVICE + "\nrequest=name,firstname,email,uniqueid"
- f = urllib.urlopen(settings.TEQUILA_SERVER + '/cgi-bin/tequila/createrequest', params)
- return re.search('key=(.*)', f.read()).group(1)
+ if settings.TEQUILA_ALLOW_GUEST:
+ params += '\nallows=categorie=epfl-guests'
+ f = urllib.request.urlopen(settings.TEQUILA_SERVER + '/cgi-bin/tequila/createrequest', params.encode())
+ return re.search('key=(.*)', f.read().decode()).group(1)
class Backend:
@@ -37,8 +39,8 @@ def authenticate(self, token=None):
# Check if token is valid
params = 'key=' + token
- f = urllib.urlopen(settings.TEQUILA_SERVER + '/cgi-bin/tequila/fetchattributes', params)
- data = f.read()
+ f = urllib.request.urlopen(settings.TEQUILA_SERVER + '/cgi-bin/tequila/fetchattributes', params.encode())
+ data = f.read().decode()
if data.find('status=ok') == -1:
return None
@@ -61,6 +63,8 @@ def authenticate(self, token=None):
user.first_name = firstName.split(',')[0]
user.last_name = name.split(',')[0]
user.email = email
+ user.last_login = now()
+ user.password = ""
user.save()
else:
user = None
@@ -91,7 +95,7 @@ def login(request):
else:
goTo = settings.LOGIN_REDIRECT_URL
- if not is_safe_url(goTo):
+ if not url_has_allowed_host_and_scheme(goTo):
goTo = settings.LOGIN_REDIRECT_URL
return HttpResponseRedirect(goTo)
@@ -103,8 +107,8 @@ def login(request):
r = HttpResponseRedirect(settings.TEQUILA_SERVER + '/cgi-bin/tequila/requestauth?requestkey=' + get_request_key(request))
# Set the cookie to be redirected when auth is done
- next = request.GET.get('next', settings.LOGIN_REDIRECT_URL)
- r.set_cookie('login_redirect', next)
+ next_url = request.GET.get('next', settings.LOGIN_REDIRECT_URL)
+ r.set_cookie('login_redirect', next_url)
return r
diff --git a/truffe2/app/urls.py b/truffe2/app/urls.py
index 0a9a72e1..ab60620a 100644
--- a/truffe2/app/urls.py
+++ b/truffe2/app/urls.py
@@ -1,22 +1,24 @@
-from django.conf.urls import patterns, include, url
+
+import django.views.static
+from django.urls import include, re_path
from django.conf import settings
-urlpatterns = patterns('',
- url(r'', include('main.urls')),
- url(r'^accounting/core/', include('accounting_core.urls')),
- url(r'^accounting/tools/', include('accounting_tools.urls')),
- url(r'^accounting/main/', include('accounting_main.urls')),
- url(r'^users/', include('users.urls')),
- url(r'^members/', include('members.urls')),
- url(r'^units/', include('units.urls')),
- url(r'^communication/', include('communication.urls')),
- url(r'^notifications/', include('notifications.urls')),
- url(r'^logistics/', include('logistics.urls')),
- url(r'^vehicles/', include('vehicles.urls')),
- url(r'^generic/', include('generic.urls')),
+urlpatterns = [
+ re_path(r'', include('main.urls')),
+ re_path(r'^accounting/core/', include('accounting_core.urls')),
+ re_path(r'^accounting/tools/', include('accounting_tools.urls')),
+ re_path(r'^accounting/main/', include('accounting_main.urls')),
+ re_path(r'^users/', include('users.urls')),
+ re_path(r'^members/', include('members.urls')),
+ re_path(r'^units/', include('units.urls')),
+ re_path(r'^communication/', include('communication.urls')),
+ re_path(r'^notifications/', include('notifications.urls')),
+ re_path(r'^logistics/', include('logistics.urls')),
+ re_path(r'^vehicles/', include('vehicles.urls')),
+ re_path(r'^generic/', include('generic.urls')),
- url(r'^impersonate/', include('impersonate.urls')),
+ re_path(r'^impersonate/', include('impersonate.urls')),
- (r'^' + settings.MEDIA_URL[1:] + '(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), # In prod, use apache !
- (r'^' + settings.STATIC_URL[1:] + '(?P.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}), # In prod, use apache !
-)
+ re_path(r'^' + settings.MEDIA_URL[1:] + '(?P.*)$', django.views.static.serve, {'document_root': settings.MEDIA_ROOT}), # In prod, use apache !
+ re_path(r'^' + settings.STATIC_URL[1:] + '(?P.*)$', django.views.static.serve, {'document_root': settings.STATIC_ROOT}), # In prod, use apache !
+]
diff --git a/truffe2/app/utils.py b/truffe2/app/utils.py
index 1a16c095..b8b10c9a 100644
--- a/truffe2/app/utils.py
+++ b/truffe2/app/utils.py
@@ -1,21 +1,19 @@
# -*- coding: utf-8 -*-
from django.conf import settings
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
from django.template.loader import get_template
-from django.template import Context
from django import http
from django.core.mail import EmailMultiAlternatives
from django.utils.timezone import now
-from django.contrib.sites.models import get_current_site
+from django.contrib.sites.shortcuts import get_current_site
from django.shortcuts import render
-
import logging
import cgi
-import ho.pisa as pisa
-import cStringIO as StringIO
-from pyPdf import PdfFileWriter, PdfFileReader
+from xhtml2pdf import pisa
+from io import BytesIO
+from PIL import Image
import traceback
@@ -73,7 +71,7 @@ def add_current_year(request):
current_year = get_current_year(request)
- current_year_pk = current_year.pk if current_year else -1
+ current_year_pk = current_year.pk if current_year else 0
current_year_name = current_year.name if current_year else _(u'?')
return {'CURRENT_YEAR': current_year, 'CURRENT_YEAR_NAME': current_year_name, 'CURRENT_YEAR_PK': current_year_pk}
@@ -109,14 +107,13 @@ def update_current_year(request, year_pk):
def send_templated_mail(request, subject, email_from, emails_to, template, context):
"""Send a email using an template (both in text and html format)"""
- plaintext = get_template('%s_plain.txt' % (template, ))
- htmly = get_template('%s_html.html' % (template, ))
+ plaintext = get_template('%s_plain.txt' % (template,))
+ htmly = get_template('%s_html.html' % (template,))
context.update({'site': get_current_site(request), 'subject': subject})
- d = Context(context)
- text_content = plaintext.render(d)
- html_content = htmly.render(d)
+ text_content = plaintext.render(context)
+ html_content = htmly.render(context)
msg = EmailMultiAlternatives(subject, text_content, settings.EMAIL_FROM, emails_to)
msg.attach_alternative(html_content, "text/html")
@@ -158,38 +155,34 @@ def set_property(obj, prop, val):
setattr(obj, prop.split('.')[-1], val)
-def append_pdf(input, output):
- [output.addPage(input.getPage(page_num)) for page_num in range(input.numPages)]
+def append_pdf(input_pdf, output_pdf):
+ [output_pdf.addPage(input_pdf.getPage(page_num)) for page_num in range(input_pdf.numPages)]
-def generate_pdf(template, request, contexte, extra_pdf_files=None):
- template = get_template(template)
+def generate_pdf(template_name, request, contexte, extra_pdf_files=None):
+ template = get_template(template_name)
contexte.update({'MEDIA_ROOT': settings.MEDIA_ROOT, 'cdate': now(), 'user': request.user})
- context = Context(contexte)
-
- html = template.render(context)
-
- result = StringIO.StringIO()
- pdf = pisa.pisaDocument(StringIO.StringIO(html.encode("UTF-8")), result)
-
- if extra_pdf_files:
-
- output = PdfFileWriter()
- append_pdf(PdfFileReader(result), output)
-
- result = StringIO.StringIO()
-
- for pdf_file in extra_pdf_files:
- try:
- append_pdf(PdfFileReader(pdf_file), output)
- except Exception as e:
- return render(request, "pdf_error.html", {'pdf': pdf_file, 'error': traceback.format_exc()})
-
- output.write(result)
-
- if not pdf.err:
- return http.HttpResponse(result.getvalue(), mimetype='application/pdf')
+ html = template.render(contexte)
+ try:
+ result = BytesIO()
+ pisa_status = pisa.CreatePDF(html, result)
+ if not pisa_status.err:
+ if extra_pdf_files:
+ from PyPDF4 import PdfFileWriter, PdfFileReader
+ output = PdfFileWriter()
+ append_pdf(PdfFileReader(result), output)
+ result = BytesIO()
+ for pdf_file in extra_pdf_files:
+ try:
+ append_pdf(PdfFileReader(pdf_file), output)
+ except Exception:
+ return render(request, "pdf_error.html", {'pdf': pdf_file, 'error': traceback.format_exc()})
+ output.write(result)
+ return http.HttpResponse(result.getvalue(), content_type='application/pdf')
+ except Exception as e:
+ logger = logging.getLogger(__name__)
+ logger.exception(e)
return http.HttpResponse('Gremlins ate your pdf! %s' % cgi.escape(html))
@@ -202,22 +195,19 @@ def pad_image(image, **kwargs):
fit = [float(img_size[i]) / des_size[i] for i in range(0, 2)]
if fit[0] > fit[1]:
- new_image = image.resize((image.size[0], int(round(des_size[1] * fit[0]))))
+ new_image = Image.new('RGB', (image.size[0], int(round(des_size[1] * fit[0]))), (255, 255, 255))
top = int((new_image.size[1] - image.size[1]) / 2)
left = 0
elif fit[0] < fit[1]:
- new_image = image.resize((int(round(des_size[0] * fit[1])), image.size[1]))
+ new_image = Image.new('RGB', (int(round(des_size[0] * fit[1])), image.size[1]), (255, 255, 255))
top = 0
left = int((new_image.size[0] - image.size[0]) / 2)
else:
return image
-
- # For white
- new_image.paste((255, 255, 255, 255))
-
new_image.paste(image, (left, top))
return new_image
+
class UnicodeCSVWriter:
"""
A CSV writer which will write rows to CSV stream "f", (formatted for sage import)
@@ -228,8 +218,8 @@ def __init__(self, f):
def writerow(self, row):
for s in row:
- if not isinstance(s, unicode):
- s = unicode(s)
+ if not isinstance(s, str):
+ s = str(s)
s = s.encode("cp1252")
self.stream.write(s)
self.stream.write(u';')
@@ -237,4 +227,4 @@ def writerow(self, row):
def writerows(self, rows):
for row in rows:
- self.writerow(row)
\ No newline at end of file
+ self.writerow(row)
diff --git a/truffe2/app/wsgi.py b/truffe2/app/wsgi.py
index fc7ffca4..c0ad0509 100644
--- a/truffe2/app/wsgi.py
+++ b/truffe2/app/wsgi.py
@@ -21,9 +21,6 @@
# os.environ["DJANGO_SETTINGS_MODULE"] = "app.settings"
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app.settings")
-from generic.startup import startup
-startup()
-
# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION
# setting points here.
diff --git a/truffe2/communication/migrations/0001_initial.py b/truffe2/communication/migrations/0001_initial.py
index cc37afdf..dd4b7742 100644
--- a/truffe2/communication/migrations/0001_initial.py
+++ b/truffe2/communication/migrations/0001_initial.py
@@ -1,20 +1,271 @@
# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
+from __future__ import unicode_literals
+from django.db import models, migrations
+from django.conf import settings
+import generic.models
+import generic.search
+import rights.utils
-class Migration(SchemaMigration):
- def forwards(self, orm):
- pass
+class Migration(migrations.Migration):
- def backwards(self, orm):
- pass
+ dependencies = [
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('units', '__first__'),
+ ]
- models = {
-
- }
-
- complete_apps = ['communication']
\ No newline at end of file
+ operations = [
+ migrations.CreateModel(
+ name='AgepSlide',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('deleted', models.BooleanField(default=False)),
+ ('title', models.CharField(max_length=255, verbose_name='Titre')),
+ ('picture', models.ImageField(help_text="Pour des raisons de qualit\xe9, il est fortement recommand\xe9 d'envoyer une image en HD (1920x1080)", upload_to=b'uploads/slides/', verbose_name='Image')),
+ ('start_date', models.DateTimeField(null=True, verbose_name='Date de d\xe9but', blank=True)),
+ ('end_date', models.DateTimeField(null=True, verbose_name='Date de fin', blank=True)),
+ ('status', models.CharField(default=b'0_draft', max_length=255, choices=[(b'4_deny', 'Refus\xe9'), (b'4_canceled', 'Annul\xe9'), (b'0_draft', 'Brouillon'), (b'3_archive', 'Archiv\xe9'), (b'1_asking', 'Mod\xe9ration en cours'), (b'2_online', 'En ligne')])),
+ ('unit', models.ForeignKey(to='units.Unit', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model, generic.models.GenericGroupsModerableModel, generic.models.GenericGroupsModel, generic.models.GenericContactableModel, generic.models.GenericStateRootModerable, generic.models.GenericStateModel, rights.utils.UnitEditableModel, generic.search.SearchableModel),
+ ),
+ migrations.CreateModel(
+ name='AgepSlideLogging',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('extra_data', models.TextField(blank=True)),
+ ('what', models.CharField(max_length=64, choices=[(b'imported', 'Import\xe9 depuis Truffe 1'), (b'created', 'Creation'), (b'edited', 'Edit\xe9'), (b'deleted', 'Supprim\xe9'), (b'restored', 'Restaur\xe9'), (b'state_changed', 'Statut chang\xe9'), (b'file_added', 'Fichier ajout\xe9'), (b'file_removed', 'Fichier supprim\xe9')])),
+ ('object', models.ForeignKey(related_name='logs', to='communication.AgepSlide', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='AgepSlideViews',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('object', models.ForeignKey(related_name='views', to='communication.AgepSlide', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='Display',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('deleted', models.BooleanField(default=False)),
+ ('title', models.CharField(max_length=255, verbose_name='Titre')),
+ ('description', models.TextField()),
+ ('active', models.BooleanField(default=True, help_text='Pour d\xe9sactiver temporairement la posibilit\xe9 de r\xe9server.', verbose_name='Actif')),
+ ('conditions', models.TextField(help_text="Si tu veux pr\xe9ciser les conditions de r\xe9servations pour l'affichage. Tu peux par exemple mettre un lien vers un contrat.", verbose_name='Conditions de r\xe9servation', blank=True)),
+ ('allow_externals', models.BooleanField(default=False, help_text="Permet aux externes (pas dans l'AGEPoly) de r\xe9server l'affichage.", verbose_name='Autoriser les externes')),
+ ('conditions_externals', models.TextField(help_text="Si tu veux pr\xe9ciser des informations sur la r\xe9servation de l'affichage pour les externes. Remplace le champ 'Conditions' pour les externe si rempli.", verbose_name='Conditions de r\xe9servation pour les externes', blank=True)),
+ ('allow_calendar', models.BooleanField(default=True, help_text="Permet \xe0 tout le monde d'afficher le calendrier des r\xe9servations de l'affichage", verbose_name='Autoriser tout le monde \xe0 voir le calendrier')),
+ ('allow_external_calendar', models.BooleanField(default=True, help_text="Permet aux externes d'afficher le calendrier des r\xe9servations de l'affichage. Le calendrier doit \xeatre visible.", verbose_name='Autoriser les externes \xe0 voir le calendrier')),
+ ('max_days', models.PositiveIntegerField(default=0, help_text='Si sup\xe9rieur \xe0 z\xe9ro, emp\xeache de demander une r\xe9servation si la longeur de la r\xe9servation dure plus longtemps que le nombre de jours d\xe9fini.', verbose_name='Nombre maximum de jours de r\xe9servation')),
+ ('max_days_externals', models.PositiveIntegerField(default=0, help_text='Si sup\xe9rieur \xe0 z\xe9ro, emp\xeache de demander une r\xe9servation si la longeur de la r\xe9servation dure plus longtemps que le nombre de jours d\xe9fini, pour les unit\xe9s externes.', verbose_name='Nombre maximum de jours de r\xe9servation (externes)')),
+ ('minimum_days_before', models.PositiveIntegerField(default=0, help_text="Si sup\xe9rieur \xe0 z\xe9ro, emp\xeache de demander une r\xe9servation si la r\xe9servation n'est pas au moins dans X jours.", verbose_name='Nombre de jours minimum avant r\xe9servation')),
+ ('minimum_days_before_externals', models.PositiveIntegerField(default=0, help_text="Si sup\xe9rieur \xe0 z\xe9ro, emp\xeache de demander une r\xe9servation si la r\xe9servation n'est pas au plus dans X jours, pour les externes.", verbose_name='Nombre de jours minimum avant r\xe9servation (externes)')),
+ ('maximum_days_before', models.PositiveIntegerField(default=0, help_text='Si sup\xe9rieur \xe0 z\xe9ro, emp\xeache de demander une r\xe9servation si la r\xe9servation est dans plus de X jours.', verbose_name='Nombre de jours maximum avant r\xe9servation')),
+ ('maximum_days_before_externals', models.PositiveIntegerField(default=0, help_text='Si sup\xe9rieur \xe0 z\xe9ro, emp\xeache de demander une r\xe9servation si la r\xe9servation est dans plus de X jours, pour les externes.', verbose_name='Nombre de jours maximum avant r\xe9servation (externes)')),
+ ('unit', models.ForeignKey(to='units.Unit', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model, generic.models.GenericGroupsModel, rights.utils.UnitEditableModel, generic.models.GenericDelayValidableInfo, generic.search.SearchableModel),
+ ),
+ migrations.CreateModel(
+ name='DisplayLogging',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('extra_data', models.TextField(blank=True)),
+ ('what', models.CharField(max_length=64, choices=[(b'imported', 'Import\xe9 depuis Truffe 1'), (b'created', 'Creation'), (b'edited', 'Edit\xe9'), (b'deleted', 'Supprim\xe9'), (b'restored', 'Restaur\xe9'), (b'state_changed', 'Statut chang\xe9'), (b'file_added', 'Fichier ajout\xe9'), (b'file_removed', 'Fichier supprim\xe9')])),
+ ('object', models.ForeignKey(related_name='logs', to='communication.Display', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='DisplayReservation',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('deleted', models.BooleanField(default=False)),
+ ('title', models.CharField(max_length=255, verbose_name='Titre')),
+ ('start_date', models.DateTimeField(verbose_name='Date de d\xe9but')),
+ ('end_date', models.DateTimeField(verbose_name='Date de fin')),
+ ('reason', models.TextField(help_text='Explique pourquoi tu as besoin (manifestation par ex.)', verbose_name='Raison')),
+ ('remarks', models.TextField(null=True, verbose_name='Remarques', blank=True)),
+ ('status', models.CharField(default=b'0_draft', max_length=255, choices=[(b'4_deny', 'Refus\xe9'), (b'4_canceled', 'Annul\xe9'), (b'0_draft', 'Brouillon'), (b'3_archive', 'Archiv\xe9'), (b'1_asking', 'Validation en cours'), (b'2_online', 'Valid\xe9')])),
+ ('unit_blank_name', models.CharField(max_length=255, null=True, verbose_name="Nom de l'entit\xe9 externe", blank=True)),
+ ('display', models.ForeignKey(verbose_name='Affichage', to='communication.Display', on_delete=models.deletion.PROTECT)),
+ ('unit', models.ForeignKey(blank=True, to='units.Unit', null=True, on_delete=models.deletion.SET_NULL)),
+ ('unit_blank_user', models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True, on_delete=models.deletion.SET_NULL)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model, generic.models.GenericDelayValidable, generic.models.GenericGroupsValidableModel, generic.models.GenericGroupsModel, generic.models.GenericContactableModel, generic.models.GenericStateUnitValidable, generic.models.GenericStateModel, generic.models.GenericExternalUnitAllowed, rights.utils.UnitExternalEditableModel, generic.search.SearchableModel),
+ ),
+ migrations.CreateModel(
+ name='DisplayReservationLogging',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('extra_data', models.TextField(blank=True)),
+ ('what', models.CharField(max_length=64, choices=[(b'imported', 'Import\xe9 depuis Truffe 1'), (b'created', 'Creation'), (b'edited', 'Edit\xe9'), (b'deleted', 'Supprim\xe9'), (b'restored', 'Restaur\xe9'), (b'state_changed', 'Statut chang\xe9'), (b'file_added', 'Fichier ajout\xe9'), (b'file_removed', 'Fichier supprim\xe9')])),
+ ('object', models.ForeignKey(related_name='logs', to='communication.DisplayReservation', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='DisplayReservationViews',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('object', models.ForeignKey(related_name='views', to='communication.DisplayReservation', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='DisplayViews',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('object', models.ForeignKey(related_name='views', to='communication.Display', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='Logo',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('deleted', models.BooleanField(default=False)),
+ ('name', models.CharField(max_length=255)),
+ ('visibility_level', models.CharField(default=b'default', help_text="Permet de rendre l'objet plus visible que les droits de base", max_length=32, verbose_name='Visibilit\xe9', choices=[(b'default', "De base (En fonction de l'objet et des droits)"), (b'unit', 'Unit\xe9 li\xe9e'), (b'unit_agep', "Unit\xe9 li\xe9e et Comit\xe9 de l'AGEPoly"), (b'all_agep', 'Toutes les personnes accr\xe9dit\xe9s dans une unit\xe9'), (b'all', 'Tout le monde')])),
+ ('unit', models.ForeignKey(to='units.Unit', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model, generic.models.GenericModelWithFiles, rights.utils.AutoVisibilityLevel, rights.utils.UnitEditableModel, generic.search.SearchableModel),
+ ),
+ migrations.CreateModel(
+ name='LogoFile',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('upload_date', models.DateTimeField(auto_now_add=True)),
+ ('file', models.FileField(upload_to=b'uploads/_generic/Logo/')),
+ ('object', models.ForeignKey(related_name='files', blank=True, to='communication.Logo', null=True, on_delete=models.deletion.SET_NULL)),
+ ('uploader', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='LogoLogging',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('extra_data', models.TextField(blank=True)),
+ ('what', models.CharField(max_length=64, choices=[(b'imported', 'Import\xe9 depuis Truffe 1'), (b'created', 'Creation'), (b'edited', 'Edit\xe9'), (b'deleted', 'Supprim\xe9'), (b'restored', 'Restaur\xe9'), (b'state_changed', 'Statut chang\xe9'), (b'file_added', 'Fichier ajout\xe9'), (b'file_removed', 'Fichier supprim\xe9')])),
+ ('object', models.ForeignKey(related_name='logs', to='communication.Logo', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='LogoViews',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('object', models.ForeignKey(related_name='views', to='communication.Logo', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='WebsiteNews',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('deleted', models.BooleanField(default=False)),
+ ('title', models.CharField(max_length=255, verbose_name='Titre')),
+ ('title_en', models.CharField(max_length=255, null=True, verbose_name='Titre anglais', blank=True)),
+ ('content', models.TextField(verbose_name='Contenu')),
+ ('content_en', models.TextField(null=True, verbose_name='Contenu anglais', blank=True)),
+ ('url', models.URLField(max_length=255)),
+ ('start_date', models.DateTimeField(null=True, verbose_name='Date d\xe9but', blank=True)),
+ ('end_date', models.DateTimeField(null=True, verbose_name='Date fin', blank=True)),
+ ('status', models.CharField(default=b'0_draft', max_length=255, choices=[(b'4_deny', 'Refus\xe9'), (b'4_canceled', 'Annul\xe9'), (b'0_draft', 'Brouillon'), (b'3_archive', 'Archiv\xe9'), (b'1_asking', 'Mod\xe9ration en cours'), (b'2_online', 'En ligne')])),
+ ('unit', models.ForeignKey(to='units.Unit', on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model, generic.models.GenericGroupsModerableModel, generic.models.GenericGroupsModel, generic.models.GenericContactableModel, generic.models.GenericStateRootModerable, generic.models.GenericStateModel, rights.utils.UnitEditableModel, generic.search.SearchableModel),
+ ),
+ migrations.CreateModel(
+ name='WebsiteNewsLogging',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('extra_data', models.TextField(blank=True)),
+ ('what', models.CharField(max_length=64, choices=[(b'imported', 'Import\xe9 depuis Truffe 1'), (b'created', 'Creation'), (b'edited', 'Edit\xe9'), (b'deleted', 'Supprim\xe9'), (b'restored', 'Restaur\xe9'), (b'state_changed', 'Statut chang\xe9'), (b'file_added', 'Fichier ajout\xe9'), (b'file_removed', 'Fichier supprim\xe9')])),
+ ('object', models.ForeignKey(related_name='logs', to='communication.WebsiteNews', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ migrations.CreateModel(
+ name='WebsiteNewsViews',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('when', models.DateTimeField(auto_now_add=True)),
+ ('object', models.ForeignKey(related_name='views', to='communication.WebsiteNews', on_delete=models.deletion.PROTECT)),
+ ('who', models.ForeignKey(to=settings.AUTH_USER_MODEL, on_delete=models.deletion.PROTECT)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=(models.Model,),
+ ),
+ ]
diff --git a/truffe2/communication/migrations/0002_auto_20201104_1648.py b/truffe2/communication/migrations/0002_auto_20201104_1648.py
new file mode 100644
index 00000000..39fd1603
--- /dev/null
+++ b/truffe2/communication/migrations/0002_auto_20201104_1648.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.29 on 2020-11-04 15:48
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('communication', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='logo',
+ name='name',
+ field=models.CharField(default=b'---', max_length=255),
+ ),
+ ]
diff --git a/truffe2/communication/migrations/0002_auto__add_websitenews__add_websitenewslogging.py b/truffe2/communication/migrations/0002_auto__add_websitenews__add_websitenewslogging.py
deleted file mode 100644
index aeace111..00000000
--- a/truffe2/communication/migrations/0002_auto__add_websitenews__add_websitenewslogging.py
+++ /dev/null
@@ -1,121 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'WebsiteNews'
- db.create_table(u'communication_websitenews', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('content', self.gf('django.db.models.fields.TextField')()),
- ('url', self.gf('django.db.models.fields.URLField')(max_length=255)),
- ('start_date', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
- ('end_date', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
- ('status', self.gf('django.db.models.fields.CharField')(default='0_draft', max_length=255)),
- ('unit', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['units.Unit'])),
- ))
- db.send_create_signal(u'communication', ['WebsiteNews'])
-
- # Adding model 'WebsiteNewsLogging'
- db.create_table(u'communication_websitenewslogging', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('extra_data', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('what', self.gf('django.db.models.fields.CharField')(max_length=64)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='logs', to=orm['communication.WebsiteNews'])),
- ))
- db.send_create_signal(u'communication', ['WebsiteNewsLogging'])
-
-
- def backwards(self, orm):
- # Deleting model 'WebsiteNews'
- db.delete_table(u'communication_websitenews')
-
- # Deleting model 'WebsiteNewsLogging'
- db.delete_table(u'communication_websitenewslogging')
-
-
- models = {
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'communication.websitenews': {
- 'Meta': {'object_name': 'WebsiteNews'},
- 'content': ('django.db.models.fields.TextField', [], {}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '255'})
- },
- u'communication.websitenewslogging': {
- 'Meta': {'object_name': 'WebsiteNewsLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.WebsiteNews']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_herachique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['communication']
\ No newline at end of file
diff --git a/truffe2/communication/migrations/0003_auto_20210210_1832.py b/truffe2/communication/migrations/0003_auto_20210210_1832.py
new file mode 100644
index 00000000..8080228b
--- /dev/null
+++ b/truffe2/communication/migrations/0003_auto_20210210_1832.py
@@ -0,0 +1,130 @@
+# Generated by Django 2.2.18 on 2021-02-10 17:32
+
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('communication', '0002_auto_20201104_1648'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='agepslide',
+ name='picture',
+ field=models.ImageField(help_text="Pour des raisons de qualité, il est fortement recommandé d'envoyer une image en HD (1920x1080)", upload_to='uploads/slides/', verbose_name='Image'),
+ ),
+ migrations.AlterField(
+ model_name='agepslide',
+ name='status',
+ field=models.CharField(choices=[('0_draft', 'Brouillon'), ('1_asking', 'Modération en cours'), ('2_online', 'En ligne'), ('3_archive', 'Archivé'), ('4_deny', 'Refusé'), ('4_canceled', 'Annulé')], default='0_draft', max_length=255),
+ ),
+ migrations.AlterField(
+ model_name='agepslidelogging',
+ name='what',
+ field=models.CharField(choices=[('imported', 'Importé depuis Truffe 1'), ('created', 'Creation'), ('edited', 'Edité'), ('deleted', 'Supprimé'), ('restored', 'Restauré'), ('state_changed', 'Statut changé'), ('file_added', 'Fichier ajouté'), ('file_removed', 'Fichier supprimé')], max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='agepslidelogging',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='agepslideviews',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='displaylogging',
+ name='what',
+ field=models.CharField(choices=[('imported', 'Importé depuis Truffe 1'), ('created', 'Creation'), ('edited', 'Edité'), ('deleted', 'Supprimé'), ('restored', 'Restauré'), ('state_changed', 'Statut changé'), ('file_added', 'Fichier ajouté'), ('file_removed', 'Fichier supprimé')], max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='displaylogging',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='displayreservation',
+ name='status',
+ field=models.CharField(choices=[('0_draft', 'Brouillon'), ('1_asking', 'Validation en cours'), ('2_online', 'Validé'), ('3_archive', 'Archivé'), ('4_deny', 'Refusé'), ('4_canceled', 'Annulé')], default='0_draft', max_length=255),
+ ),
+ migrations.AlterField(
+ model_name='displayreservationlogging',
+ name='what',
+ field=models.CharField(choices=[('imported', 'Importé depuis Truffe 1'), ('created', 'Creation'), ('edited', 'Edité'), ('deleted', 'Supprimé'), ('restored', 'Restauré'), ('state_changed', 'Statut changé'), ('file_added', 'Fichier ajouté'), ('file_removed', 'Fichier supprimé')], max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='displayreservationlogging',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='displayreservationviews',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='displayviews',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='logo',
+ name='name',
+ field=models.CharField(default='---', max_length=255),
+ ),
+ migrations.AlterField(
+ model_name='logo',
+ name='visibility_level',
+ field=models.CharField(choices=[('default', "De base (En fonction de l'objet et des droits)"), ('unit', 'Unité liée'), ('unit_agep', "Unité liée et Comité de l'AGEPoly"), ('all_agep', 'Toutes les personnes accrédités dans une unité'), ('all', 'Tout le monde')], default='default', help_text="Permet de rendre l'objet plus visible que les droits de base", max_length=32, verbose_name='Visibilité'),
+ ),
+ migrations.AlterField(
+ model_name='logofile',
+ name='file',
+ field=models.FileField(upload_to='uploads/_generic/Logo/'),
+ ),
+ migrations.AlterField(
+ model_name='logofile',
+ name='uploader',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='logologging',
+ name='what',
+ field=models.CharField(choices=[('imported', 'Importé depuis Truffe 1'), ('created', 'Creation'), ('edited', 'Edité'), ('deleted', 'Supprimé'), ('restored', 'Restauré'), ('state_changed', 'Statut changé'), ('file_added', 'Fichier ajouté'), ('file_removed', 'Fichier supprimé')], max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='logologging',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='logoviews',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='websitenews',
+ name='status',
+ field=models.CharField(choices=[('0_draft', 'Brouillon'), ('1_asking', 'Modération en cours'), ('2_online', 'En ligne'), ('3_archive', 'Archivé'), ('4_deny', 'Refusé'), ('4_canceled', 'Annulé')], default='0_draft', max_length=255),
+ ),
+ migrations.AlterField(
+ model_name='websitenewslogging',
+ name='what',
+ field=models.CharField(choices=[('imported', 'Importé depuis Truffe 1'), ('created', 'Creation'), ('edited', 'Edité'), ('deleted', 'Supprimé'), ('restored', 'Restauré'), ('state_changed', 'Statut changé'), ('file_added', 'Fichier ajouté'), ('file_removed', 'Fichier supprimé')], max_length=64),
+ ),
+ migrations.AlterField(
+ model_name='websitenewslogging',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ migrations.AlterField(
+ model_name='websitenewsviews',
+ name='who',
+ field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL),
+ ),
+ ]
diff --git a/truffe2/communication/migrations/0003_auto__add_agepslide__add_agepslidelogging.py b/truffe2/communication/migrations/0003_auto__add_agepslide__add_agepslidelogging.py
deleted file mode 100644
index 1f2ddb3a..00000000
--- a/truffe2/communication/migrations/0003_auto__add_agepslide__add_agepslidelogging.py
+++ /dev/null
@@ -1,140 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'AgepSlide'
- db.create_table(u'communication_agepslide', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('picture', self.gf('django.db.models.fields.files.ImageField')(max_length=100)),
- ('start_date', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
- ('end_date', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
- ('status', self.gf('django.db.models.fields.CharField')(default='0_draft', max_length=255)),
- ('unit', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['units.Unit'])),
- ))
- db.send_create_signal(u'communication', ['AgepSlide'])
-
- # Adding model 'AgepSlideLogging'
- db.create_table(u'communication_agepslidelogging', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('extra_data', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('what', self.gf('django.db.models.fields.CharField')(max_length=64)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='logs', to=orm['communication.AgepSlide'])),
- ))
- db.send_create_signal(u'communication', ['AgepSlideLogging'])
-
-
- def backwards(self, orm):
- # Deleting model 'AgepSlide'
- db.delete_table(u'communication_agepslide')
-
- # Deleting model 'AgepSlideLogging'
- db.delete_table(u'communication_agepslidelogging')
-
-
- models = {
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'communication.agepslide': {
- 'Meta': {'object_name': 'AgepSlide'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'picture': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'communication.agepslidelogging': {
- 'Meta': {'object_name': 'AgepSlideLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.AgepSlide']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.websitenews': {
- 'Meta': {'object_name': 'WebsiteNews'},
- 'content': ('django.db.models.fields.TextField', [], {}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '255'})
- },
- u'communication.websitenewslogging': {
- 'Meta': {'object_name': 'WebsiteNewsLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.WebsiteNews']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_herachique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['communication']
\ No newline at end of file
diff --git a/truffe2/communication/migrations/0004_auto__add_logo__add_logologging.py b/truffe2/communication/migrations/0004_auto__add_logo__add_logologging.py
deleted file mode 100644
index 62012d32..00000000
--- a/truffe2/communication/migrations/0004_auto__add_logo__add_logologging.py
+++ /dev/null
@@ -1,154 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'Logo'
- db.create_table(u'communication_logo', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('unit', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['units.Unit'])),
- ))
- db.send_create_signal(u'communication', ['Logo'])
-
- # Adding model 'LogoLogging'
- db.create_table(u'communication_logologging', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('extra_data', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('what', self.gf('django.db.models.fields.CharField')(max_length=64)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='logs', to=orm['communication.Logo'])),
- ))
- db.send_create_signal(u'communication', ['LogoLogging'])
-
-
- def backwards(self, orm):
- # Deleting model 'Logo'
- db.delete_table(u'communication_logo')
-
- # Deleting model 'LogoLogging'
- db.delete_table(u'communication_logologging')
-
-
- models = {
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'communication.agepslide': {
- 'Meta': {'object_name': 'AgepSlide'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'picture': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'communication.agepslidelogging': {
- 'Meta': {'object_name': 'AgepSlideLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.AgepSlide']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.logo': {
- 'Meta': {'object_name': 'Logo'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'communication.logologging': {
- 'Meta': {'object_name': 'LogoLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.Logo']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.websitenews': {
- 'Meta': {'object_name': 'WebsiteNews'},
- 'content': ('django.db.models.fields.TextField', [], {}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '255'})
- },
- u'communication.websitenewslogging': {
- 'Meta': {'object_name': 'WebsiteNewsLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.WebsiteNews']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['communication']
\ No newline at end of file
diff --git a/truffe2/communication/migrations/0005_auto__add_field_logo_visibility_level.py b/truffe2/communication/migrations/0005_auto__add_field_logo_visibility_level.py
deleted file mode 100644
index a0d59a05..00000000
--- a/truffe2/communication/migrations/0005_auto__add_field_logo_visibility_level.py
+++ /dev/null
@@ -1,137 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'Logo.visibility_level'
- db.add_column(u'communication_logo', 'visibility_level',
- self.gf('django.db.models.fields.CharField')(default='default', max_length=32),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'Logo.visibility_level'
- db.delete_column(u'communication_logo', 'visibility_level')
-
-
- models = {
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'communication.agepslide': {
- 'Meta': {'object_name': 'AgepSlide'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'picture': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'communication.agepslidelogging': {
- 'Meta': {'object_name': 'AgepSlideLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.AgepSlide']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.logo': {
- 'Meta': {'object_name': 'Logo'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'visibility_level': ('django.db.models.fields.CharField', [], {'default': "'default'", 'max_length': '32'})
- },
- u'communication.logologging': {
- 'Meta': {'object_name': 'LogoLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.Logo']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.websitenews': {
- 'Meta': {'object_name': 'WebsiteNews'},
- 'content': ('django.db.models.fields.TextField', [], {}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '255'})
- },
- u'communication.websitenewslogging': {
- 'Meta': {'object_name': 'WebsiteNewsLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.WebsiteNews']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['communication']
\ No newline at end of file
diff --git a/truffe2/communication/migrations/0006_auto__add_logofile.py b/truffe2/communication/migrations/0006_auto__add_logofile.py
deleted file mode 100644
index 7002de68..00000000
--- a/truffe2/communication/migrations/0006_auto__add_logofile.py
+++ /dev/null
@@ -1,148 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'LogoFile'
- db.create_table(u'communication_logofile', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('creation_date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='files', to=orm['communication.Logo'])),
- ('file', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
- ))
- db.send_create_signal(u'communication', ['LogoFile'])
-
-
- def backwards(self, orm):
- # Deleting model 'LogoFile'
- db.delete_table(u'communication_logofile')
-
-
- models = {
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'communication.agepslide': {
- 'Meta': {'object_name': 'AgepSlide'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'picture': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'communication.agepslidelogging': {
- 'Meta': {'object_name': 'AgepSlideLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.AgepSlide']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.logo': {
- 'Meta': {'object_name': 'Logo'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'visibility_level': ('django.db.models.fields.CharField', [], {'default': "'default'", 'max_length': '32'})
- },
- u'communication.logofile': {
- 'Meta': {'object_name': 'LogoFile'},
- 'creation_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'files'", 'to': u"orm['communication.Logo']"})
- },
- u'communication.logologging': {
- 'Meta': {'object_name': 'LogoLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.Logo']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.websitenews': {
- 'Meta': {'object_name': 'WebsiteNews'},
- 'content': ('django.db.models.fields.TextField', [], {}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '255'})
- },
- u'communication.websitenewslogging': {
- 'Meta': {'object_name': 'WebsiteNewsLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.WebsiteNews']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['communication']
\ No newline at end of file
diff --git a/truffe2/communication/migrations/0007_auto__del_field_logofile_creation_date__add_field_logofile_upload_date.py b/truffe2/communication/migrations/0007_auto__del_field_logofile_creation_date__add_field_logofile_upload_date.py
deleted file mode 100644
index a60784f4..00000000
--- a/truffe2/communication/migrations/0007_auto__del_field_logofile_creation_date__add_field_logofile_upload_date.py
+++ /dev/null
@@ -1,175 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Deleting field 'LogoFile.creation_date'
- db.delete_column(u'communication_logofile', 'creation_date')
-
- # Adding field 'LogoFile.upload_date'
- db.add_column(u'communication_logofile', 'upload_date',
- self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, default=datetime.datetime(2015, 6, 27, 0, 0), blank=True),
- keep_default=False)
-
- # Adding field 'LogoFile.uploader'
- db.add_column(u'communication_logofile', 'uploader',
- self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['users.TruffeUser']),
- keep_default=False)
-
-
- # Changing field 'LogoFile.object'
- db.alter_column(u'communication_logofile', 'object_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['communication.Logo']))
-
- def backwards(self, orm):
-
- # User chose to not deal with backwards NULL issues for 'LogoFile.creation_date'
- raise RuntimeError("Cannot reverse this migration. 'LogoFile.creation_date' and its values cannot be restored.")
-
- # The following code is provided here to aid in writing a correct migration # Adding field 'LogoFile.creation_date'
- db.add_column(u'communication_logofile', 'creation_date',
- self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True),
- keep_default=False)
-
- # Deleting field 'LogoFile.upload_date'
- db.delete_column(u'communication_logofile', 'upload_date')
-
- # Deleting field 'LogoFile.uploader'
- db.delete_column(u'communication_logofile', 'uploader_id')
-
-
- # User chose to not deal with backwards NULL issues for 'LogoFile.object'
- raise RuntimeError("Cannot reverse this migration. 'LogoFile.object' and its values cannot be restored.")
-
- # The following code is provided here to aid in writing a correct migration
- # Changing field 'LogoFile.object'
- db.alter_column(u'communication_logofile', 'object_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['communication.Logo']))
-
- models = {
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'communication.agepslide': {
- 'Meta': {'object_name': 'AgepSlide'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'picture': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'communication.agepslidelogging': {
- 'Meta': {'object_name': 'AgepSlideLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.AgepSlide']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.logo': {
- 'Meta': {'object_name': 'Logo'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'visibility_level': ('django.db.models.fields.CharField', [], {'default': "'default'", 'max_length': '32'})
- },
- u'communication.logofile': {
- 'Meta': {'object_name': 'LogoFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['communication.Logo']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.logologging': {
- 'Meta': {'object_name': 'LogoLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.Logo']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.websitenews': {
- 'Meta': {'object_name': 'WebsiteNews'},
- 'content': ('django.db.models.fields.TextField', [], {}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '255'})
- },
- u'communication.websitenewslogging': {
- 'Meta': {'object_name': 'WebsiteNewsLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.WebsiteNews']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['communication']
\ No newline at end of file
diff --git a/truffe2/communication/migrations/0008_auto__add_logoviews__add_websitenewsviews__add_agepslideviews.py b/truffe2/communication/migrations/0008_auto__add_logoviews__add_websitenewsviews__add_agepslideviews.py
deleted file mode 100644
index 225e7eca..00000000
--- a/truffe2/communication/migrations/0008_auto__add_logoviews__add_websitenewsviews__add_agepslideviews.py
+++ /dev/null
@@ -1,197 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'LogoViews'
- db.create_table(u'communication_logoviews', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='views', to=orm['communication.Logo'])),
- ))
- db.send_create_signal(u'communication', ['LogoViews'])
-
- # Adding model 'WebsiteNewsViews'
- db.create_table(u'communication_websitenewsviews', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='views', to=orm['communication.WebsiteNews'])),
- ))
- db.send_create_signal(u'communication', ['WebsiteNewsViews'])
-
- # Adding model 'AgepSlideViews'
- db.create_table(u'communication_agepslideviews', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='views', to=orm['communication.AgepSlide'])),
- ))
- db.send_create_signal(u'communication', ['AgepSlideViews'])
-
-
- def backwards(self, orm):
- # Deleting model 'LogoViews'
- db.delete_table(u'communication_logoviews')
-
- # Deleting model 'WebsiteNewsViews'
- db.delete_table(u'communication_websitenewsviews')
-
- # Deleting model 'AgepSlideViews'
- db.delete_table(u'communication_agepslideviews')
-
-
- models = {
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'communication.agepslide': {
- 'Meta': {'object_name': 'AgepSlide'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'picture': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'communication.agepslidelogging': {
- 'Meta': {'object_name': 'AgepSlideLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.AgepSlide']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.agepslideviews': {
- 'Meta': {'object_name': 'AgepSlideViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['communication.AgepSlide']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.logo': {
- 'Meta': {'object_name': 'Logo'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'visibility_level': ('django.db.models.fields.CharField', [], {'default': "'default'", 'max_length': '32'})
- },
- u'communication.logofile': {
- 'Meta': {'object_name': 'LogoFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['communication.Logo']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.logologging': {
- 'Meta': {'object_name': 'LogoLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.Logo']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.logoviews': {
- 'Meta': {'object_name': 'LogoViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['communication.Logo']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.websitenews': {
- 'Meta': {'object_name': 'WebsiteNews'},
- 'content': ('django.db.models.fields.TextField', [], {}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '255'})
- },
- u'communication.websitenewslogging': {
- 'Meta': {'object_name': 'WebsiteNewsLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.WebsiteNews']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.websitenewsviews': {
- 'Meta': {'object_name': 'WebsiteNewsViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['communication.WebsiteNews']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'homepage': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['communication']
\ No newline at end of file
diff --git a/truffe2/communication/migrations/0009_auto__add_field_websitenews_title_en__add_field_websitenews_content_en.py b/truffe2/communication/migrations/0009_auto__add_field_websitenews_title_en__add_field_websitenews_content_en.py
deleted file mode 100644
index 8ef1a418..00000000
--- a/truffe2/communication/migrations/0009_auto__add_field_websitenews_title_en__add_field_websitenews_content_en.py
+++ /dev/null
@@ -1,179 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding field 'WebsiteNews.title_en'
- db.add_column(u'communication_websitenews', 'title_en',
- self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True),
- keep_default=False)
-
- # Adding field 'WebsiteNews.content_en'
- db.add_column(u'communication_websitenews', 'content_en',
- self.gf('django.db.models.fields.TextField')(null=True, blank=True),
- keep_default=False)
-
-
- def backwards(self, orm):
- # Deleting field 'WebsiteNews.title_en'
- db.delete_column(u'communication_websitenews', 'title_en')
-
- # Deleting field 'WebsiteNews.content_en'
- db.delete_column(u'communication_websitenews', 'content_en')
-
-
- models = {
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'communication.agepslide': {
- 'Meta': {'object_name': 'AgepSlide'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'picture': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'communication.agepslidelogging': {
- 'Meta': {'object_name': 'AgepSlideLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.AgepSlide']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.agepslideviews': {
- 'Meta': {'object_name': 'AgepSlideViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['communication.AgepSlide']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.logo': {
- 'Meta': {'object_name': 'Logo'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'visibility_level': ('django.db.models.fields.CharField', [], {'default': "'default'", 'max_length': '32'})
- },
- u'communication.logofile': {
- 'Meta': {'object_name': 'LogoFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['communication.Logo']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.logologging': {
- 'Meta': {'object_name': 'LogoLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.Logo']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.logoviews': {
- 'Meta': {'object_name': 'LogoViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['communication.Logo']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.websitenews': {
- 'Meta': {'object_name': 'WebsiteNews'},
- 'content': ('django.db.models.fields.TextField', [], {}),
- 'content_en': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'title_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '255'})
- },
- u'communication.websitenewslogging': {
- 'Meta': {'object_name': 'WebsiteNewsLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.WebsiteNews']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.websitenewsviews': {
- 'Meta': {'object_name': 'WebsiteNewsViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['communication.WebsiteNews']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'homepage': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['communication']
\ No newline at end of file
diff --git a/truffe2/communication/migrations/0010_auto__add_displayviews__add_displayreservationlogging__add_display__ad.py b/truffe2/communication/migrations/0010_auto__add_displayviews__add_displayreservationlogging__add_display__ad.py
deleted file mode 100644
index f950c8a3..00000000
--- a/truffe2/communication/migrations/0010_auto__add_displayviews__add_displayreservationlogging__add_display__ad.py
+++ /dev/null
@@ -1,327 +0,0 @@
-# -*- coding: utf-8 -*-
-from south.utils import datetime_utils as datetime
-from south.db import db
-from south.v2 import SchemaMigration
-from django.db import models
-
-
-class Migration(SchemaMigration):
-
- def forwards(self, orm):
- # Adding model 'DisplayViews'
- db.create_table(u'communication_displayviews', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='views', to=orm['communication.Display'])),
- ))
- db.send_create_signal(u'communication', ['DisplayViews'])
-
- # Adding model 'DisplayReservationLogging'
- db.create_table(u'communication_displayreservationlogging', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('extra_data', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('what', self.gf('django.db.models.fields.CharField')(max_length=64)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='logs', to=orm['communication.DisplayReservation'])),
- ))
- db.send_create_signal(u'communication', ['DisplayReservationLogging'])
-
- # Adding model 'Display'
- db.create_table(u'communication_display', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('description', self.gf('django.db.models.fields.TextField')()),
- ('active', self.gf('django.db.models.fields.BooleanField')(default=True)),
- ('conditions', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('allow_externals', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('conditions_externals', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('allow_calendar', self.gf('django.db.models.fields.BooleanField')(default=True)),
- ('allow_external_calendar', self.gf('django.db.models.fields.BooleanField')(default=True)),
- ('max_days', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
- ('max_days_externals', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
- ('minimum_days_before', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
- ('minimum_days_before_externals', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
- ('maximum_days_before', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
- ('maximum_days_before_externals', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)),
- ('unit', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['units.Unit'])),
- ))
- db.send_create_signal(u'communication', ['Display'])
-
- # Adding model 'DisplayReservation'
- db.create_table(u'communication_displayreservation', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
- ('start_date', self.gf('django.db.models.fields.DateTimeField')()),
- ('end_date', self.gf('django.db.models.fields.DateTimeField')()),
- ('reason', self.gf('django.db.models.fields.TextField')()),
- ('remarks', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
- ('status', self.gf('django.db.models.fields.CharField')(default='0_draft', max_length=255)),
- ('unit', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['units.Unit'], null=True, blank=True)),
- ('unit_blank_user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'], null=True, blank=True)),
- ('unit_blank_name', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
- ('display', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['communication.Display'])),
- ))
- db.send_create_signal(u'communication', ['DisplayReservation'])
-
- # Adding model 'DisplayLogging'
- db.create_table(u'communication_displaylogging', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('extra_data', self.gf('django.db.models.fields.TextField')(blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('what', self.gf('django.db.models.fields.CharField')(max_length=64)),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='logs', to=orm['communication.Display'])),
- ))
- db.send_create_signal(u'communication', ['DisplayLogging'])
-
- # Adding model 'DisplayReservationViews'
- db.create_table(u'communication_displayreservationviews', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
- ('who', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['users.TruffeUser'])),
- ('object', self.gf('django.db.models.fields.related.ForeignKey')(related_name='views', to=orm['communication.DisplayReservation'])),
- ))
- db.send_create_signal(u'communication', ['DisplayReservationViews'])
-
-
- def backwards(self, orm):
- # Deleting model 'DisplayViews'
- db.delete_table(u'communication_displayviews')
-
- # Deleting model 'DisplayReservationLogging'
- db.delete_table(u'communication_displayreservationlogging')
-
- # Deleting model 'Display'
- db.delete_table(u'communication_display')
-
- # Deleting model 'DisplayReservation'
- db.delete_table(u'communication_displayreservation')
-
- # Deleting model 'DisplayLogging'
- db.delete_table(u'communication_displaylogging')
-
- # Deleting model 'DisplayReservationViews'
- db.delete_table(u'communication_displayreservationviews')
-
-
- models = {
- u'auth.group': {
- 'Meta': {'object_name': 'Group'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
- 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
- },
- u'auth.permission': {
- 'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
- 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
- },
- u'communication.agepslide': {
- 'Meta': {'object_name': 'AgepSlide'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'picture': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'communication.agepslidelogging': {
- 'Meta': {'object_name': 'AgepSlideLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.AgepSlide']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.agepslideviews': {
- 'Meta': {'object_name': 'AgepSlideViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['communication.AgepSlide']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.display': {
- 'Meta': {'object_name': 'Display'},
- 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'allow_calendar': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'allow_external_calendar': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'allow_externals': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'conditions': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'conditions_externals': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'max_days': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'max_days_externals': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'maximum_days_before': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'maximum_days_before_externals': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'minimum_days_before': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'minimum_days_before_externals': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"})
- },
- u'communication.displaylogging': {
- 'Meta': {'object_name': 'DisplayLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.Display']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.displayreservation': {
- 'Meta': {'object_name': 'DisplayReservation'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'display': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['communication.Display']"}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'reason': ('django.db.models.fields.TextField', [], {}),
- 'remarks': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'unit_blank_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit_blank_user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']", 'null': 'True', 'blank': 'True'})
- },
- u'communication.displayreservationlogging': {
- 'Meta': {'object_name': 'DisplayReservationLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.DisplayReservation']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.displayreservationviews': {
- 'Meta': {'object_name': 'DisplayReservationViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['communication.DisplayReservation']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.displayviews': {
- 'Meta': {'object_name': 'DisplayViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['communication.Display']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.logo': {
- 'Meta': {'object_name': 'Logo'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'visibility_level': ('django.db.models.fields.CharField', [], {'default': "'default'", 'max_length': '32'})
- },
- u'communication.logofile': {
- 'Meta': {'object_name': 'LogoFile'},
- 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'files'", 'null': 'True', 'to': u"orm['communication.Logo']"}),
- 'upload_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'uploader': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.logologging': {
- 'Meta': {'object_name': 'LogoLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.Logo']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.logoviews': {
- 'Meta': {'object_name': 'LogoViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['communication.Logo']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.websitenews': {
- 'Meta': {'object_name': 'WebsiteNews'},
- 'content': ('django.db.models.fields.TextField', [], {}),
- 'content_en': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
- 'status': ('django.db.models.fields.CharField', [], {'default': "'0_draft'", 'max_length': '255'}),
- 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'title_en': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'unit': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']"}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '255'})
- },
- u'communication.websitenewslogging': {
- 'Meta': {'object_name': 'WebsiteNewsLogging'},
- 'extra_data': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'logs'", 'to': u"orm['communication.WebsiteNews']"}),
- 'what': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'communication.websitenewsviews': {
- 'Meta': {'object_name': 'WebsiteNewsViews'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'object': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'views'", 'to': u"orm['communication.WebsiteNews']"}),
- 'when': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
- 'who': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['users.TruffeUser']"})
- },
- u'contenttypes.contenttype': {
- 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
- 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
- },
- u'units.unit': {
- 'Meta': {'object_name': 'Unit'},
- 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'id_epfl': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
- 'is_commission': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_equipe': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_hidden': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
- 'parent_hierarchique': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['units.Unit']", 'null': 'True', 'blank': 'True'}),
- 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
- },
- u'users.truffeuser': {
- 'Meta': {'object_name': 'TruffeUser'},
- 'adresse': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
- 'avatar': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
- 'body': ('django.db.models.fields.CharField', [], {'default': "'.'", 'max_length': '1'}),
- 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'email': ('django.db.models.fields.EmailField', [], {'max_length': '255'}),
- 'email_perso': ('django.db.models.fields.EmailField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
- 'homepage': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
- 'iban_ou_ccp': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
- 'is_betatester': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
- 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
- 'mobile': ('django.db.models.fields.CharField', [], {'max_length': '25', 'blank': 'True'}),
- 'nom_banque': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
- 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
- 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
- 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['communication']
\ No newline at end of file
diff --git a/truffe2/communication/models.py b/truffe2/communication/models.py
index c692359f..ede4c5a6 100644
--- a/truffe2/communication/models.py
+++ b/truffe2/communication/models.py
@@ -2,11 +2,11 @@
from django.db import models
from generic.models import GenericModel, GenericStateModel, GenericStateRootModerable, GenericStateUnitValidable, FalseFK, GenericGroupsValidableModel, GenericGroupsModerableModel, GenericGroupsModel, GenericContactableModel, GenericModelWithFiles, GenericExternalUnitAllowed, GenericDelayValidable, GenericDelayValidableInfo, SearchableModel, ModelUsedAsLine, GenericModelWithLines
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
from django.utils.html import escape
from django.utils.safestring import mark_safe
from django.utils.timezone import localtime
-from django.core.urlresolvers import reverse
+from django.urls import reverse
from rights.utils import UnitEditableModel, UnitExternalEditableModel, AutoVisibilityLevel
@@ -71,7 +71,7 @@ class MetaSearch(SearchableModel.MetaSearch):
class Meta:
abstract = True
- def __unicode__(self):
+ def __str__(self):
return self.title
@@ -130,7 +130,7 @@ class MetaSearch(SearchableModel.MetaSearch):
class Meta:
abstract = True
- def __unicode__(self):
+ def __str__(self):
return self.title
def get_image_warning(self):
@@ -143,7 +143,7 @@ class _Logo(GenericModel, GenericModelWithFiles, AutoVisibilityLevel, UnitEditab
class MetaRightsUnit(UnitEditableModel.MetaRightsUnit):
access = 'COMMUNICATION'
- name = models.CharField(max_length=255)
+ name = models.CharField(max_length=255, default='---')
unit = FalseFK('units.models.Unit')
class MetaData:
@@ -151,7 +151,7 @@ class MetaData:
('name', _('Nom')),
]
details_display = list_display + [('get_visibility_level_display', _(u'Visibilité')), ]
- filter_fields = ('name', )
+ filter_fields = ('name',)
base_title = _(u'Logo')
list_title = _(u'Liste de tous les logos')
@@ -184,7 +184,7 @@ class MetaSearch(SearchableModel.MetaSearch):
class Meta:
abstract = True
- def __unicode__(self):
+ def __str__(self):
return self.name
def get_best_image(self):
@@ -196,6 +196,7 @@ def get_best_image(self):
return f
+
class _Display(GenericModel, GenericGroupsModel, UnitEditableModel, GenericDelayValidableInfo, SearchableModel):
class MetaRightsUnit(UnitEditableModel.MetaRightsUnit):
@@ -267,9 +268,10 @@ class MetaSearch(SearchableModel.MetaSearch):
class Meta:
abstract = True
- def __unicode__(self):
+ def __str__(self):
return self.title
+
class _DisplayReservation(GenericModel, GenericDelayValidable, GenericGroupsValidableModel, GenericGroupsModel, GenericContactableModel, GenericStateUnitValidable, GenericStateModel, GenericExternalUnitAllowed, UnitExternalEditableModel, SearchableModel):
class MetaRightsUnit(UnitExternalEditableModel.MetaRightsUnit):
@@ -357,8 +359,8 @@ class MetaEdit:
datetime_fields = ('start_date', 'end_date')
only_if = {
- 'remarks': lambda (obj, user): obj.status == '2_online' and obj.rights_can('VALIDATE', user),
- 'display': lambda (obj, user): obj.status == '0_draft',
+ 'remarks': lambda obj, user: obj.status == '2_online' and obj.rights_can('VALIDATE', user),
+ 'display': lambda obj, user: obj.status == '0_draft',
}
class MetaSearch(SearchableModel.MetaSearch):
@@ -379,7 +381,7 @@ class MetaState(GenericStateUnitValidable.MetaState):
unit_field = 'display.unit'
linked_model = 'communication.models.Display'
- def __unicode__(self):
+ def __str__(self):
return self.title
def genericFormExtraClean(self, data, form):
@@ -426,7 +428,7 @@ def get_conflits(self):
return retour
def get_display_link(self):
- return '{}'.format(reverse('communication.views.display_show', args=(self.display.pk,)), self.display)
+ return '{}'.format(reverse('communication-views-display_show', args=(self.display.pk,)), self.display)
def get_conflits_list(self):
diff --git a/truffe2/communication/templates/communication/displayreservation/edit.html b/truffe2/communication/templates/communication/displayreservation/edit.html
index a5c17642..e16d8980 100644
--- a/truffe2/communication/templates/communication/displayreservation/edit.html
+++ b/truffe2/communication/templates/communication/displayreservation/edit.html
@@ -23,7 +23,7 @@
$('#id_display').width('92%').select2({
minimumInputLength: 0,
ajax: {
- url: "{% url 'communication.views.display_search' %}",
+ url: "{% url 'communication-views-display_search' %}",
dataType: 'json',
data: function (term, page) {
return {
@@ -36,7 +36,7 @@
},
},
initSelection : function (element, callback) {
- $.ajax("{% url 'communication.views.display_search' %}?init=" + $(element).val() + '&unit_pk=' + $('#input_upk').val(), {'dataType': 'json'}).success(function (data) {
+ $.ajax("{% url 'communication-views-display_search' %}?init=" + $(element).val() + '&unit_pk=' + $('#input_upk').val(), {'dataType': 'json'}).success(function (data) {
callback(data[0]);
});
},
diff --git a/truffe2/communication/templates/communication/ecrans.html b/truffe2/communication/templates/communication/ecrans.html
index 44d69a3a..021b51c7 100755
--- a/truffe2/communication/templates/communication/ecrans.html
+++ b/truffe2/communication/templates/communication/ecrans.html
@@ -40,7 +40,7 @@
function changeImage() {
- ajax.open("GET","{% url 'communication.views.random_slide' %}?_" + Date(), false);
+ ajax.open("GET","{% url 'communication-views-random_slide' %}?_" + Date(), false);
ajax.send();
if (last_image == 'image0')
diff --git a/truffe2/communication/templates/communication/logo_public_list.html b/truffe2/communication/templates/communication/logo_public_list.html
index 907b2741..81ea0156 100644
--- a/truffe2/communication/templates/communication/logo_public_list.html
+++ b/truffe2/communication/templates/communication/logo_public_list.html
@@ -54,7 +54,7 @@ {% trans "Logos" %}
{% for unit in units %}
// function load_unit_data_{{forloop.counter}}() {
- $.ajax('{% url 'communication.views.logo_public_load' %}?pk={{unit.pk}}').done(function (data) {
+ $.ajax('{% url 'communication-views-logo_public_load' %}?pk={{unit.pk}}').done(function (data) {
$('#tab-{{unit.pk}}').html(data);
// load_unit_data_{{forloop.counter|add:"1"}}();
diff --git a/truffe2/communication/templates/communication/logo_public_load.html b/truffe2/communication/templates/communication/logo_public_load.html
index d742daae..79907093 100644
--- a/truffe2/communication/templates/communication/logo_public_load.html
+++ b/truffe2/communication/templates/communication/logo_public_load.html
@@ -2,11 +2,11 @@
{% for logo in logos %}
-
+
{{logo.name|truncatechars:25}}
{% if logo.files.count == 1 %}
-
+
{% else %}
@@ -18,7 +18,7 @@
diff --git a/truffe2/communication/tests.py b/truffe2/communication/tests.py
index 7ce503c2..cb634b21 100644
--- a/truffe2/communication/tests.py
+++ b/truffe2/communication/tests.py
@@ -1,3 +1,56 @@
-from django.test import TestCase
+# -*- coding: utf-8 -*-
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
-# Create your tests here.
+Replace this with more appropriate tests for your application.
+"""
+
+from main.test_tools import TruffeTestAbstract
+
+
+class CommunicationNoLoginTest(TruffeTestAbstract):
+
+ def test_ecrans(self):
+ self.call_check_text('/communication/ecrans')
+
+ def test_random_slide(self):
+ self.call_check_text('/communication/random_slide')
+
+ def test_website_news(self):
+ self.call_check_json('/communication/website_news')
+
+ def test_public_list(self):
+ self.call_check_redirect('/communication/logo_public_list')
+
+ def test_logo_public_load(self):
+ self.call_check_redirect('/communication/logo_public_load')
+
+ def test_display_search(self):
+ self.call_check_redirect('/communication/display/search')
+
+
+class CommunicationWithLoginTest(TruffeTestAbstract):
+
+ login_username = "admin"
+
+ def test_ecrans(self):
+ self.call_check_text('/communication/ecrans')
+
+ def test_random_slide(self):
+ self.call_check_text('/communication/random_slide')
+
+ def test_website_news(self):
+ self.call_check_json('/communication/website_news')
+
+ def test_public_list(self):
+ self.call_check_html('/communication/logo_public_list')
+
+ def test_logo_public_load(self):
+ self.call_check_text('/communication/logo_public_load', data={"pk":1})
+
+ def test_display_search(self):
+ self.call_check_json('/communication/display/search')
+ self.call_check_json('/communication/display/search', data={'q':'room'})
+ self.call_check_json('/communication/display/search', data={'init':1})
+ self.call_check_json('/communication/display/search', data={'unit_pk':2})
diff --git a/truffe2/communication/urls.py b/truffe2/communication/urls.py
index 8203ea63..6f00825f 100644
--- a/truffe2/communication/urls.py
+++ b/truffe2/communication/urls.py
@@ -1,15 +1,14 @@
# -*- coding: utf-8 -*-
-from django.conf.urls import patterns, url
-
-
-urlpatterns = patterns(
- 'communication.views',
-
- url(r'^ecrans$', 'ecrans'),
- url(r'^random_slide$', 'random_slide'),
- url(r'^website_news$', 'website_news'),
- url(r'^logo_public_list$', 'logo_public_list'),
- url(r'^logo_public_load$', 'logo_public_load'),
- url('display/search', 'display_search'),
-)
+from django.urls import re_path
+from communication.views import display_search, logo_public_load, \
+ logo_public_list, website_news, random_slide, ecrans
+
+urlpatterns = [
+ re_path(r'^ecrans$', ecrans, name='communication-views-ecrans'),
+ re_path(r'^random_slide$', random_slide, name='communication-views-random_slide'),
+ re_path(r'^website_news$', website_news, name='communication-views-website_news'),
+ re_path(r'^logo_public_list$', logo_public_list, name='communication-views-logo_public_list'),
+ re_path(r'^logo_public_load$', logo_public_load, name='communication-views-logo_public_load'),
+ re_path('display/search', display_search, name='communication-views-display_search'),
+]
diff --git a/truffe2/communication/views.py b/truffe2/communication/views.py
index c2f29720..d12b8b50 100644
--- a/truffe2/communication/views.py
+++ b/truffe2/communication/views.py
@@ -12,6 +12,7 @@
from app.utils import update_current_unit
from generic.templatetags.generic_extras import html_check_and_safe
+
def ecrans(request):
"""View to display the ecran page"""
@@ -37,7 +38,7 @@ def website_news(request):
for news in WebsiteNews.objects.filter(status='2_online').exclude(deleted=True).filter(Q(start_date=None) | Q(start_date__lt=now())).filter(Q(end_date=None) | Q(end_date__gt=now())).order_by('?'):
if not request.GET.get('only') or request.GET.get('only')[5:] == str(news.pk):
- retour.append({'id': 'T2V1N{}'.format(news.pk), 'title_fr': news.title, 'title_en': news.title_en or news.title, 'content_fr': news.content, 'content_en': news.content_en or news.content, 'url': news.url, 'unit': news.unit.__unicode__(), 'date': str(news.start_date or news.last_log().when)})
+ retour.append({'id': 'T2V1N{}'.format(news.pk), 'title_fr': news.title, 'title_en': news.title_en or news.title, 'content_fr': news.content, 'content_en': news.content_en or news.content, 'url': news.url, 'unit': news.unit.__str__(), 'date': str(news.start_date or news.last_log().when)})
return HttpResponse(json.dumps(retour), content_type='application/json')
@@ -68,6 +69,7 @@ def logo_public_load(request):
return render(request, 'communication/logo_public_load.html', {'logos': logos, 'unit': unit})
+
@login_required
def display_search(request):
@@ -77,7 +79,7 @@ def display_search(request):
init = request.GET.get('init')
unit_pk = request.GET.get('unit_pk', "-1") or "-1"
- displays= Display.objects.filter(active=True, deleted=False).order_by('title')
+ displays = Display.objects.filter(active=True, deleted=False).order_by('title')
if q:
displays = displays.filter(title__icontains=q)
@@ -101,6 +103,6 @@ def display_search(request):
if not dummy.rights_can('CREATE', request.user):
raise Http404
- retour = map(lambda display: {'id': display.pk, 'text': display.title, 'description': strip_tags(html_check_and_safe(display.description))[:100] + '...', 'unit': str(display.unit)}, displays)
+ retour = [{'id': display.pk, 'text': display.title, 'description': strip_tags(html_check_and_safe(display.description))[:100] + '...', 'unit': str(display.unit)} for display in displays]
return HttpResponse(json.dumps(retour))
diff --git a/truffe2/data/pip-reqs.txt b/truffe2/data/pip-reqs.txt
index 7d22803e..150344ea 100644
--- a/truffe2/data/pip-reqs.txt
+++ b/truffe2/data/pip-reqs.txt
@@ -1,30 +1,25 @@
-django<1.7
-south
+Django==3.1.6
raven
-Pillow<3
-django-bootstrap3<6
+django-bootstrap3==14.2.0
phonenumbers
requests
-django-impersonate<1
+django-impersonate==1.7.3
pytz
git+https://github.com/goinnn/django-multiselectfield
-easy_thumbnails<2.5
-bleach<1.5
+easy_thumbnails==2.7.1
+bleach==3.3.0
python-ldap
-pisa
-reportlab<3
-html5lib==1.0b8
-django-appconf<1.0.4
-django-jfu
-django-sendfile
-django-haystack==2.4.1
+xhtml2pdf
+django-appconf==1.0.4
+django-sendfile2
+django-haystack==3.0
whoosh
-pdfminer.six
textract
-celery==3.1.25
-celery-haystack<0.10
-pypdf
-pyyaml
+celery==5.0.5
+celery-haystack==0.10
+PyPDF4
wand
schwifty
-iso4217 # currency list
\ No newline at end of file
+iso4217 # currency list
+enum34
+six==1.15.0
diff --git a/truffe2/generic/__init__.py b/truffe2/generic/__init__.py
index e69de29b..ae264d66 100644
--- a/truffe2/generic/__init__.py
+++ b/truffe2/generic/__init__.py
@@ -0,0 +1,3 @@
+
+default_app_config = 'generic.apps.GenericConfig'
+
diff --git a/truffe2/generic/apps.py b/truffe2/generic/apps.py
new file mode 100644
index 00000000..eeaa6d08
--- /dev/null
+++ b/truffe2/generic/apps.py
@@ -0,0 +1,15 @@
+# -*- coding: utf-8 -*-
+'''
+apps.py
+'''
+
+from django.apps import AppConfig
+
+
+class GenericConfig(AppConfig):
+ name = 'generic'
+ verbose_name = "Generic"
+
+ def ready(self):
+ from generic.models import GenericModel
+ GenericModel.startup()
diff --git a/truffe2/generic/datatables.py b/truffe2/generic/datatables.py
index ce3d6dca..168314bc 100644
--- a/truffe2/generic/datatables.py
+++ b/truffe2/generic/datatables.py
@@ -1,5 +1,4 @@
from django.db.models import Q
-from django.template import RequestContext
from django.shortcuts import render
@@ -11,22 +10,30 @@ def generic_list_json(request, model, columns, templates, bonus_data={}, check_d
not_sortable_columns_local = not_sortable_columns + (model.MetaData.not_sortable_columns if hasattr(model, 'MetaData') and hasattr(model.MetaData, 'not_sortable_columns') else [])
columns_mapping_local = model.MetaData.trans_sort if hasattr(model, 'MetaData') and hasattr(model.MetaData, 'trans_sort') else (columns_mapping or {})
+
+ def request_get(key, default):
+ if key in request.GET:
+ return request.GET[key]
+ elif key in request.POST:
+ return request.POST[key]
+ else:
+ return default
def do_ordering(qs):
# Ordering
try:
- i_sorting_cols = int(request.REQUEST.get('iSortingCols', 0))
+ i_sorting_cols = int(request_get('iSortingCols', 0))
except:
i_sorting_cols = 0
order = []
for i in range(i_sorting_cols):
try:
- i_sort_col = int(request.REQUEST.get('iSortCol_%s' % i))
+ i_sort_col = int(request_get('iSortCol_%s' % i, 0))
except ValueError:
i_sort_col = 0
- s_sort_dir = request.REQUEST.get('sSortDir_%s' % i)
+ s_sort_dir = request_get('sSortDir_%s' % i, '')
sdir = '-' if s_sort_dir == 'desc' else ''
@@ -49,15 +56,15 @@ def do_ordering(qs):
return qs
def do_paging(qs):
- limit = min(int(request.REQUEST.get('iDisplayLength', 10)), 500)
+ limit = min(int(request_get('iDisplayLength', 10)), 500)
if limit == -1:
return qs
- start = int(request.REQUEST.get('iDisplayStart', 0))
+ start = int(request_get('iDisplayStart', 0))
offset = start + limit
return qs[start:offset]
def do_filtering(qs):
- sSearch = request.REQUEST.get('sSearch', None)
+ sSearch = request_get('sSearch', None)
if sSearch:
@@ -81,7 +88,7 @@ def do_filtering(qs):
qs = qs.filter(general_base)
if hasattr(model, 'MetaState') and hasattr(model.MetaState, 'status_col_id'):
- status_search = request.REQUEST.get('sSearch_%s' % (model.MetaState.status_col_id + (0 if not deca_one_status else 0) + (0 if selector_column else 0),), None)
+ status_search = request_get('sSearch_%s' % (model.MetaState.status_col_id + (0 if not deca_one_status else 0) + (0 if selector_column else 0),), None)
if status_search == "null":
status_search = None
@@ -118,7 +125,7 @@ def do_filtering(qs):
qs = do_ordering(qs)
qs = do_paging(qs)
- data = {'iTotalRecords': total_records, 'iTotalDisplayRecords': total_display_records, 'sEcho': int(request.REQUEST.get('sEcho', 0)), 'list': qs.all()}
+ data = {'iTotalRecords': total_records, 'iTotalDisplayRecords': total_display_records, 'sEcho': int(request_get('sEcho', 0)), 'list': qs.all()}
data.update(bonus_data)
rep = render(request, templates, data, content_type='application/json')
diff --git a/truffe2/generic/forms.py b/truffe2/generic/forms.py
index b39fd7eb..1f3ddba7 100644
--- a/truffe2/generic/forms.py
+++ b/truffe2/generic/forms.py
@@ -1,13 +1,13 @@
# -*- coding: utf-8 -*-
from django.forms import ModelForm, Form, CharField, ChoiceField, Textarea, BooleanField, ValidationError
-from django.utils.translation import ugettext_lazy as _
-
+from django.utils.translation import gettext_lazy as _
from app.utils import get_property
class GenericForm(ModelForm):
+
class Meta:
pass
@@ -29,8 +29,8 @@ def __init__(self, current_user, *args, **kwargs):
self.fields['unit'].queryset = Unit.objects.order_by('name')
if hasattr(self.Meta.model, 'MetaEdit') and hasattr(self.Meta.model.MetaEdit, 'only_if'):
- for key, test in self.Meta.model.MetaEdit.only_if.iteritems():
- if not test((self.instance, current_user)):
+ for key, test in self.Meta.model.MetaEdit.only_if.items():
+ if not test(self.instance, current_user):
if key in self.fields:
del self.fields[key]
@@ -59,8 +59,10 @@ def clean(self):
if 'costcenter' not in cleaned_data:
raise ValidationError(_(u'Aucun centre de coûts sélectionné !'))
- if hasattr(self.instance, 'unit') and cleaned_data['costcenter'].unit.pk not in [self.instance.unit.pk] + map(lambda un: un.pk, self.instance.unit.sub_eqi() + self.instance.unit.sub_grp()):
- raise ValidationError(_(u'Le centre de coût n\'est pas lié à l\'unité !'))
+ if hasattr(self.instance, 'unit'):
+ list_unit_pk = [self.instance.unit.pk] + [un.pk for un in self.instance.unit.sub_eqi() + self.instance.unit.sub_grp()]
+ if cleaned_data['costcenter'].unit.pk not in list_unit_pk:
+ raise ValidationError(_(u'Le centre de coût n\'est pas lié à l\'unité !'))
if hasattr(self.instance, 'accounting_year') and self.instance.accounting_year != cleaned_data['costcenter'].accounting_year:
raise ValidationError(_(u'Le centre de coût n\'est pas lié à l\'année comptable !'))
@@ -77,6 +79,6 @@ class ContactForm(Form):
def __init__(self, keys, *args, **kwargs):
super(ContactForm, self).__init__(*args, **kwargs)
- choices_key = [x for x in keys.iteritems()]
+ choices_key = [x for x in keys.items()]
self.fields['key'] = ChoiceField(label=_('Destinataire(s)'), choices=choices_key)
diff --git a/truffe2/generic/models.py b/truffe2/generic/models.py
index cf024c01..2313a41d 100644
--- a/truffe2/generic/models.py
+++ b/truffe2/generic/models.py
@@ -1,13 +1,13 @@
# -*- coding: utf-8 -*-
from django.db import models
+from django.db.models.deletion import PROTECT, SET_NULL
from django.conf import settings
-from django.conf.urls import patterns, url
-from django.core.urlresolvers import reverse
-from django.contrib.contenttypes.models import ContentType
+from django.urls import re_path
from django.forms import CharField, Textarea, Form
from django.utils.timezone import now
-from django.utils.translation import ugettext_lazy as _
+from django.utils.translation import gettext_lazy as _
+from django.urls import reverse
import json
import copy
@@ -21,15 +21,12 @@
import textract
from celery_haystack.indexes import CelerySearchIndex
-from users.models import TruffeUser
from generic import views
from generic.forms import GenericForm
from generic.search import SearchableModel
from app.utils import get_property
-from notifications.utils import notify_people, unotify_people
from rights.utils import AutoVisibilityLevel
-
moderable_things = []
copiable_things = []
@@ -49,6 +46,8 @@ def build_models_list_of(Class):
retour = []
already_returned = []
for app in settings.INSTALLED_APPS:
+ if app in ('impersonate',):
+ continue
try:
module = importlib.import_module(app)
models_module = importlib.import_module('.models', app)
@@ -56,7 +55,8 @@ def build_models_list_of(Class):
urls_module = importlib.import_module('.urls', app)
forms_module = importlib.import_module('.forms', app)
except Exception as e:
- if str(e) not in ["No module named urls", "No module named views", "No module named forms", "No module named models"]:
+ message = str(e)
+ if ("No module named" not in message) and not (("urls" in message) or ("views" in message) or ("forms" in message) or ("models" in message)):
raise
try:
@@ -118,9 +118,9 @@ def startup():
if issubclass(model_class, SpecificClass):
extra_data.update(SpecificClass.do(module, models_module, model_class, cache))
- for key, value in model_class.__dict__.iteritems():
+ for key, value in model_class.__dict__.items():
if hasattr(value, '__class__') and value.__class__ == FalseFK:
- extra_data.update({key: models.ForeignKey(cache[value.model], *value.args, **value.kwargs)})
+ extra_data.update({key: models.ForeignKey(cache[value.model], on_delete=PROTECT, *value.args, **value.kwargs)})
real_model_class = type(model_class.__name__[1:], (model_class,), extra_data)
@@ -128,11 +128,11 @@ def startup():
cache['%s.%s' % (models_module.__name__, real_model_class.__name__)] = real_model_class
# Add the logging model
- logging_class = type('%sLogging' % (real_model_class.__name__,), (GenericLogEntry,), {'object': models.ForeignKey(real_model_class, related_name='logs'), '__module__': models_module.__name__})
+ logging_class = type('%sLogging' % (real_model_class.__name__,), (GenericLogEntry,), {'object': models.ForeignKey(real_model_class, related_name='logs', on_delete=PROTECT), '__module__': models_module.__name__})
setattr(models_module, logging_class.__name__, logging_class)
# Add the view model
- views_class = type('%sViews' % (real_model_class.__name__,), (GenericObjectView,), {'object': models.ForeignKey(real_model_class, related_name='views'), '__module__': models_module.__name__})
+ views_class = type('%sViews' % (real_model_class.__name__,), (GenericObjectView,), {'object': models.ForeignKey(real_model_class, related_name='views', on_delete=PROTECT), '__module__': models_module.__name__})
setattr(models_module, views_class.__name__, views_class)
setattr(real_model_class, "_t2_views_class", views_class)
@@ -141,26 +141,27 @@ def startup():
# Add the file model (if needed)
if issubclass(model_class, GenericModelWithFiles):
- file_class = type('%sFile' % (real_model_class.__name__,), (GenericFile,), {'object': models.ForeignKey(real_model_class, related_name='files', blank=True, null=True), 'file': models.FileField(upload_to='uploads/_generic/%s/' % (real_model_class.__name__,)), '__module__': models_module.__name__})
+ file_class = type('%sFile' % (real_model_class.__name__,), (GenericFile,), {'object': models.ForeignKey(real_model_class, related_name='files', blank=True, null=True, on_delete=SET_NULL), 'file': models.FileField(upload_to='uploads/_generic/%s/' % (real_model_class.__name__,)), '__module__': models_module.__name__})
setattr(models_module, file_class.__name__, file_class)
full_upload_path = '%s/uploads/_generic/%s/' % (settings.MEDIA_ROOT, real_model_class.__name__)
if not os.path.isdir(full_upload_path):
- print "[!] %s need to be a folder for file uplodad ! (And don\'t forget the gitignore)" % (full_upload_path,)
+ print("[!] %s need to be a folder for file uplodad ! (And don\'t forget the gitignore)" % (full_upload_path,))
else:
file_class = None
# Add the tag model (if needed)
if issubclass(model_class, GenericTaggableObject):
- tag_class = type('%sTag' % (real_model_class.__name__,), (GenericTag,), {'object': models.ForeignKey(real_model_class, related_name='tags'), '__module__': models_module.__name__})
+ tag_class = type('%sTag' % (real_model_class.__name__,), (GenericTag,), {'object': models.ForeignKey(real_model_class, related_name='tags', on_delete=PROTECT), '__module__': models_module.__name__})
setattr(models_module, tag_class.__name__, tag_class)
else:
tag_class = None
# Create the form module
def generate_meta(Model):
+
class Meta():
model = Model
exclude = ('deleted', 'status', 'accounting_year')
@@ -199,43 +200,43 @@ class MetaNoUnitExternal():
setattr(views_module, '%s_mayi' % (base_views_name,), views.generate_mayi(module, base_views_name, real_model_class, logging_class))
# Add urls to views
- urls_module.urlpatterns += patterns(views_module.__name__,
- url(r'^%s/$' % (base_views_name,), '%s_list' % (base_views_name,)),
- url(r'^%s/mayi$' % (base_views_name,), '%s_mayi' % (base_views_name,)),
- url(r'^%s/json$' % (base_views_name,), '%s_list_json' % (base_views_name,)),
- url(r'^%s/deleted$' % (base_views_name,), '%s_deleted' % (base_views_name,)),
- url(r'^%s/logs$' % (base_views_name,), '%s_logs' % (base_views_name,)),
- url(r'^%s/logs/json$' % (base_views_name,), '%s_logs_json' % (base_views_name,)),
- url(r'^%s/(?P[0-9~]+)/edit$' % (base_views_name,), '%s_edit' % (base_views_name,)),
- url(r'^%s/(?P[0-9,]+)/delete$' % (base_views_name,), '%s_delete' % (base_views_name,)),
- url(r'^%s/(?P[0-9]+)/$' % (base_views_name,), '%s_show' % (base_views_name,)),
- )
-
- setattr(real_model_class, '_show_view', '%s.%s_show' % (views_module.__name__, base_views_name,))
+ urls_module.urlpatterns.extend([
+ re_path(r'^%s/$' % (base_views_name,), getattr(views_module, '%s_list' % (base_views_name,)), name='%s-%s_list' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ re_path(r'^%s/mayi$' % (base_views_name,), getattr(views_module, '%s_mayi' % (base_views_name,)), name='%s-%s_mayi' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ re_path(r'^%s/json$' % (base_views_name,), getattr(views_module, '%s_list_json' % (base_views_name,)), name='%s-%s_list_json' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ re_path(r'^%s/deleted$' % (base_views_name,), getattr(views_module, '%s_deleted' % (base_views_name,)), name='%s-%s_deleted' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ re_path(r'^%s/logs$' % (base_views_name,), getattr(views_module, '%s_logs' % (base_views_name,)), name='%s-%s_logs' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ re_path(r'^%s/logs/json$' % (base_views_name,), getattr(views_module, '%s_logs_json' % (base_views_name,)), name='%s-%s_logs_json' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ re_path(r'^%s/(?P[0-9~]+)/edit$' % (base_views_name,), getattr(views_module, '%s_edit' % (base_views_name,)), name='%s-%s_edit' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ re_path(r'^%s/(?P[0-9,]+)/delete$' % (base_views_name,), getattr(views_module, '%s_delete' % (base_views_name,)), name='%s-%s_delete' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ re_path(r'^%s/(?P[0-9]+)/$' % (base_views_name,), getattr(views_module, '%s_show' % (base_views_name,)), name='%s-%s_show' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ ])
+
+ setattr(real_model_class, '_show_view', '%s-%s_show' % (views_module.__name__.replace('.', '-'), base_views_name,))
if issubclass(model_class, GenericStateModel):
setattr(views_module, '%s_switch_status' % (base_views_name,), views.generate_switch_status(module, base_views_name, real_model_class, logging_class))
- urls_module.urlpatterns += patterns(views_module.__name__,
- url(r'^%s/(?P[0-9,]+)/switch_status$' % (base_views_name,), '%s_switch_status' % (base_views_name,)),
- )
+ urls_module.urlpatterns.extend([
+ re_path(r'^%s/(?P[0-9,]+)/switch_status$' % (base_views_name,), getattr(views_module, '%s_switch_status' % (base_views_name,)), name='%s-%s_switch_status' % (views_module.__name__.replace('.', '-') , base_views_name))
+ ])
if hasattr(model_class.MetaData, 'menu_id_calendar'):
setattr(views_module, '%s_calendar' % (base_views_name,), views.generate_calendar(module, base_views_name, real_model_class))
setattr(views_module, '%s_calendar_json' % (base_views_name,), views.generate_calendar_json(module, base_views_name, real_model_class))
- urls_module.urlpatterns += patterns(views_module.__name__,
- url(r'^%s/calendar/$' % (base_views_name,), '%s_calendar' % (base_views_name,)),
- url(r'^%s/calendar/json$' % (base_views_name,), '%s_calendar_json' % (base_views_name,)),
- )
+ urls_module.urlpatterns.extend([
+ re_path(r'^%s/calendar/$' % (base_views_name,), getattr(views_module, '%s_calendar' % (base_views_name,)), name='%s-%s_calendar' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ re_path(r'^%s/calendar/json$' % (base_views_name,), getattr(views_module, '%s_calendar_json' % (base_views_name,)), name='%s-%s_calendar_json' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ ])
if hasattr(model_class.MetaData, 'menu_id_calendar_related'):
setattr(views_module, '%s_calendar_related' % (base_views_name,), views.generate_calendar_related(module, base_views_name, real_model_class))
setattr(views_module, '%s_calendar_related_json' % (base_views_name,), views.generate_calendar_related_json(module, base_views_name, real_model_class))
- urls_module.urlpatterns += patterns(views_module.__name__,
- url(r'^%s/related/calendar/$' % (base_views_name,), '%s_calendar_related' % (base_views_name,)),
- url(r'^%s/related/calendar/json$' % (base_views_name,), '%s_calendar_related_json' % (base_views_name,)),
- )
+ urls_module.urlpatterns.extend([
+ re_path(r'^%s/related/calendar/$' % (base_views_name,), getattr(views_module, '%s_calendar_related' % (base_views_name,)), name='%s-%s_calendar_related' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ re_path(r'^%s/related/calendar/json$' % (base_views_name,), getattr(views_module, '%s_calendar_related_json' % (base_views_name,)), name='%s-%s_calendar_related_json' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ ])
if issubclass(model_class, GenericStateUnitValidable):
setattr(views_module, '%s_list_related' % (base_views_name,), views.generate_list_related(module, base_views_name, real_model_class))
@@ -244,14 +245,14 @@ class MetaNoUnitExternal():
setattr(views_module, '%s_calendar_specific_json' % (base_views_name,), views.generate_calendar_specific_json(module, base_views_name, real_model_class))
setattr(views_module, '%s_directory' % (base_views_name,), views.generate_directory(module, base_views_name, real_model_class))
- urls_module.urlpatterns += patterns(views_module.__name__,
- url(r'^%s/related/$' % (base_views_name,), '%s_list_related' % (base_views_name,)),
- url(r'^%s/related/json$' % (base_views_name,), '%s_list_related_json' % (base_views_name,)),
+ urls_module.urlpatterns.extend([
+ re_path(r'^%s/related/$' % (base_views_name,), getattr(views_module, '%s_list_related' % (base_views_name,)), name='%s-%s_list_related' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ re_path(r'^%s/related/json$' % (base_views_name,), getattr(views_module, '%s_list_related_json' % (base_views_name,)), name='%s-%s_list_related_json' % (views_module.__name__.replace('.', '-') , base_views_name)),
- url(r'^%s/specific/(?P[0-9~]+)/calendar/$' % (base_views_name,), '%s_calendar_specific' % (base_views_name,)),
- url(r'^%s/specific/(?P[0-9~]+)/calendar/json$' % (base_views_name,), '%s_calendar_specific_json' % (base_views_name,)),
- url(r'^%s/directory/$' % (base_views_name,), '%s_directory' % (base_views_name,)),
- )
+ re_path(r'^%s/specific/(?P[0-9~]+)/calendar/$' % (base_views_name,), getattr(views_module, '%s_calendar_specific' % (base_views_name,)), name='%s-%s_calendar_specific' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ re_path(r'^%s/specific/(?P[0-9~]+)/calendar/json$' % (base_views_name,), getattr(views_module, '%s_calendar_specific_json' % (base_views_name,)), name='%s-%s_calendar_specific_json' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ re_path(r'^%s/directory/$' % (base_views_name,), getattr(views_module, '%s_directory' % (base_views_name,)), name='%s-%s_directory' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ ])
if issubclass(model_class, GenericStateValidableOrModerable) and real_model_class not in moderable_things:
moderable_things.append(real_model_class)
@@ -261,28 +262,28 @@ class MetaNoUnitExternal():
if issubclass(model_class, GenericContactableModel):
setattr(views_module, '%s_contact' % (base_views_name,), views.generate_contact(module, base_views_name, real_model_class, logging_class))
- urls_module.urlpatterns += patterns(views_module.__name__,
- url(r'^%s/(?P[0-9]+)/contact/(?P.+)$' % (base_views_name,), '%s_contact' % (base_views_name,)),
- )
+ urls_module.urlpatterns.extend([
+ re_path(r'^%s/(?P[0-9]+)/contact/(?P.+)$' % (base_views_name,), getattr(views_module, '%s_contact' % (base_views_name,)), name='%s-%s_contact' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ ])
if file_class:
setattr(views_module, '%s_file_upload' % (base_views_name,), views.generate_file_upload(module, base_views_name, real_model_class, logging_class, file_class))
setattr(views_module, '%s_file_delete' % (base_views_name,), views.generate_file_delete(module, base_views_name, real_model_class, logging_class, file_class))
setattr(views_module, '%s_file_get' % (base_views_name,), views.generate_file_get(module, base_views_name, real_model_class, logging_class, file_class))
setattr(views_module, '%s_file_get_thumbnail' % (base_views_name,), views.generate_file_get_thumbnail(module, base_views_name, real_model_class, logging_class, file_class))
- urls_module.urlpatterns += patterns(views_module.__name__,
- url(r'^%sfile/upload$' % (base_views_name,), '%s_file_upload' % (base_views_name,)),
- url(r'^%sfile/(?P[0-9]+)/delete$' % (base_views_name,), '%s_file_delete' % (base_views_name,)),
- url(r'^%sfile/(?P[0-9]+)/get/.*$' % (base_views_name,), '%s_file_get' % (base_views_name,)),
- url(r'^%sfile/(?P[0-9]+)/thumbnail$' % (base_views_name,), '%s_file_get_thumbnail' % (base_views_name,)),
- )
+ urls_module.urlpatterns.extend([
+ re_path(r'^%sfile/upload$' % (base_views_name,), getattr(views_module, '%s_file_upload' % (base_views_name,)), name='%s-%s_file_upload' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ re_path(r'^%sfile/(?P[0-9]+)/delete$' % (base_views_name,), getattr(views_module, '%s_file_delete' % (base_views_name,)), name='%s-%s_file_delete' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ re_path(r'^%sfile/(?P[0-9]+)/get/.*$' % (base_views_name,), getattr(views_module, '%s_file_get' % (base_views_name,)), name='%s-%s_file_get' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ re_path(r'^%sfile/(?P[0-9]+)/thumbnail$' % (base_views_name,), getattr(views_module, '%s_file_get_thumbnail' % (base_views_name,)), name='%s-%s_file_get_thumbnail' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ ])
if tag_class:
setattr(views_module, '%s_tag_search' % (base_views_name,), views.generate_tag_search(module, base_views_name, real_model_class, logging_class, tag_class))
- urls_module.urlpatterns += patterns(views_module.__name__,
- url(r'^%stags/search$' % (base_views_name,), '%s_tag_search' % (base_views_name,)),
- )
-
+ urls_module.urlpatterns.extend([
+ re_path(r'^%stags/search$' % (base_views_name,), getattr(views_module, '%s_tag_search' % (base_views_name,)), name='%s-%s_tag_search' % (views_module.__name__.replace('.', '-') , base_views_name)),
+ ])
+
if issubclass(model_class, SearchableModel):
if not search_indexes_module:
raise(Exception("{} need a search_indexes.py, please create it in {}/".format(model_class.__name__, module.__name__)))
@@ -302,10 +303,10 @@ def build_state(self):
loc = getattr(self, f.name).astimezone(timezone(settings.TIME_ZONE))
retour[f.name] = loc.strftime("%Y-%m-%d %H:%M:%S")
elif isinstance(f, models.ManyToManyField):
- retour[f.name] = u', '.join([unicode(x) for x in getattr(self, f.name).all()])
+ retour[f.name] = u', '.join([str(x) for x in getattr(self, f.name).all()])
else:
- retour[f.name] = unicode(getattr(self, f.name))
+ retour[f.name] = str(getattr(self, f.name))
return retour
@@ -332,10 +333,10 @@ def get_full_class_name(self):
def is_new(self, user):
"""Return true is the model has unseen updates for a user"""
-
+ last_log = self.last_log()
try:
view_obj = self.views.get(who=user)
- return view_obj.when <= self.last_log().when
+ return view_obj.when <= last_log.when if last_log is not None else True
except self._t2_views_class.DoesNotExist:
return True
@@ -373,7 +374,7 @@ class GenericFile(models.Model):
# NB: The ForgienKey AND the file field are generated dynamicaly
upload_date = models.DateTimeField(auto_now_add=True)
- uploader = models.ForeignKey(TruffeUser)
+ uploader = models.ForeignKey('users.TruffeUser', on_delete=PROTECT)
def basename(self):
return os.path.basename(self.file.path)
@@ -399,7 +400,7 @@ class GenericStateModel(object):
def do(module, models_module, model_class, cache):
"""Execute code at startup"""
- return {'status': models.CharField(max_length=255, choices=model_class.MetaState.states.iteritems(), default=model_class.MetaState.default)}
+ return {'status': models.CharField(max_length=255, choices=model_class.MetaState.states.items(), default=model_class.MetaState.default)}
def status_color(self):
return self.MetaState.states_colors.get(self.status, 'default')
@@ -427,13 +428,13 @@ def states_links_with_ids(self):
current_id = 0
- for elem, __ in self.MetaState.states.iteritems():
+ for elem, __ in self.MetaState.states.items():
by_ids[elem] = current_id
current_id += 1
retour_links = []
- for elem, __ in self.MetaState.states.iteritems():
+ for elem, __ in self.MetaState.states.items():
tmp = []
for elem_dest in self.MetaState.states_links[elem]:
@@ -448,7 +449,7 @@ def states_forced_pos_x(self):
retour = {}
- for k, (x, _) in self.MetaState.forced_pos.iteritems():
+ for k, (x, _) in self.MetaState.forced_pos.items():
retour[k] = x
return retour
@@ -459,7 +460,7 @@ def states_forced_pos_y(self):
retour = {}
- for k, (_, y) in self.MetaState.forced_pos.iteritems():
+ for k, (_, y) in self.MetaState.forced_pos.items():
retour[k] = y
return retour
@@ -469,7 +470,7 @@ class GenericLogEntry(models.Model):
when = models.DateTimeField(auto_now_add=True)
extra_data = models.TextField(blank=True)
- who = models.ForeignKey(TruffeUser)
+ who = models.ForeignKey('users.TruffeUser', on_delete=PROTECT)
LOG_TYPES = (
('imported', _(u'Importé depuis Truffe 1')),
@@ -494,7 +495,7 @@ class Meta:
class GenericObjectView(models.Model):
when = models.DateTimeField(auto_now_add=True)
- who = models.ForeignKey(TruffeUser)
+ who = models.ForeignKey('users.TruffeUser', on_delete=PROTECT)
class Meta:
abstract = True
@@ -659,6 +660,7 @@ def rights_can_DELETE(self, user):
return super(GenericStateValidableOrModerable, self).rights_can_EDIT(user)
def switch_status_signal(self, request, old_status, dest_status):
+ from notifications.utils import notify_people, unotify_people
s = super(GenericStateValidableOrModerable, self)
@@ -696,6 +698,7 @@ def build_group_members_for_cancel(self):
return people
def delete_signal(self, request):
+ from notifications.utils import notify_people
if hasattr(super(GenericStateValidableOrModerable, self), 'delete_signal'):
super(GenericStateValidableOrModerable, self).delete_signal(request)
@@ -797,6 +800,7 @@ def switch_status_signal(self, request, old_status, dest_status):
class GenericAccountingStateModel(object):
"""Un système de statut générique pour les pièces comptables"""
+
def get_unit_signer(self):
return getattr(self.logs.filter(what='state_changed', extra_data__contains='"old_code": "1_unit_validable"').order_by('-when').first(), 'who', None)
@@ -979,6 +983,7 @@ def rights_can_DELETE(self, user):
return super(GenericAccountingStateModel, self).rights_can_EDIT(user)
def switch_status_signal(self, request, old_status, dest_status):
+ from notifications.utils import notify_people, unotify_people
s = super(GenericAccountingStateModel, self)
if hasattr(s, 'switch_status_signal'):
@@ -1039,7 +1044,14 @@ def get_linked_object(self):
return getattr(self, self.MetaState.unit_field.split('.')[0])
-class GenericGroupsModel():
+class GenericSerializable(object):
+
+ @classmethod
+ def deconstruct(cls):
+ return ('%s.%s' % (cls.__module__, cls.__name__), [], {})
+
+
+class GenericGroupsModel(GenericSerializable):
class MetaGroups(object):
groups = {
@@ -1072,10 +1084,10 @@ def build_group_members_for_editors(self):
return retour
def build_group_members_for_canedit(self):
- return self.rights_peoples_in_EDIT()
+ return self.rights_peoples_in_EDIT()
-class GenericGroupsValidableOrModerableModel(object):
+class GenericGroupsValidableOrModerableModel(GenericSerializable):
generic_groups_moderable = True
@@ -1104,13 +1116,13 @@ class GenericGroupsValidableModel(GenericGroupsValidableOrModerableModel):
generic_groups_moderable = False
-class GenericContactableModel():
+class GenericContactableModel(GenericSerializable):
def contactables_groups(self):
return self.MetaGroups.groups
-class GenericExternalUnitAllowed():
+class GenericExternalUnitAllowed(GenericSerializable):
"""Rend l'utilisation d'unités externes possibles"""
@staticmethod
@@ -1118,8 +1130,8 @@ def do(module, models_module, model_class, cache):
"""Execute code at startup"""
return {
- 'unit': models.ForeignKey(cache['units.models.Unit'], blank=True, null=True),
- 'unit_blank_user': models.ForeignKey(settings.AUTH_USER_MODEL, blank=True, null=True),
+ 'unit': models.ForeignKey(cache['units.models.Unit'], blank=True, null=True, on_delete=SET_NULL),
+ 'unit_blank_user': models.ForeignKey(settings.AUTH_USER_MODEL, blank=True, null=True, on_delete=SET_NULL),
'unit_blank_name': models.CharField(_(u'Nom de l\'entité externe'), max_length=255, blank=True, null=True),
}
@@ -1131,7 +1143,7 @@ def get_unit_name(self):
return u'%s (Externe, par %s)' % (self.unit_blank_name, self.unit_blank_user)
-class GenericDelayValidableInfo():
+class GenericDelayValidableInfo(GenericSerializable):
@staticmethod
def do(module, models_module, model_class, cache):
@@ -1149,7 +1161,7 @@ def do(module, models_module, model_class, cache):
}
-class GenericDelayValidable(object):
+class GenericDelayValidable(GenericSerializable):
def can_switch_to(self, user, dest_state):
@@ -1181,7 +1193,7 @@ def can_switch_to(self, user, dest_state):
return super(GenericDelayValidable, self).can_switch_to(user, dest_state)
-class GenericModelWithLines(object):
+class GenericModelWithLines(GenericSerializable):
class MetaLines():
lines_objects = [
@@ -1198,7 +1210,7 @@ class Meta:
abstract = True
-class GenericTaggableObject(object):
+class GenericTaggableObject(GenericSerializable):
"""Un object taggable. Prend en compte l'année comptable et l'unité si présent pour la découverte de tag"""
pass
@@ -1211,7 +1223,7 @@ class Meta:
abstract = True
-class LinkedInfoModel(object):
+class LinkedInfoModel(GenericSerializable):
def __init__(self, *args, **kwargs):
@@ -1221,6 +1233,7 @@ def __init__(self, *args, **kwargs):
self.MetaEdit.set_linked_info = True
def linked_info(self):
+ from django.contrib.contenttypes.models import ContentType
from accounting_tools.models import LinkedInfo
object_ct = ContentType.objects.get(app_label=self._meta.app_label, model=self._meta.model_name)
@@ -1302,7 +1315,7 @@ def prepare_text(self, obj):
text += u"{} {}\n".format(f.file.name.split('/')[-1], txt)
if obj.MetaSearch.linked_lines:
- for key, fields in obj.MetaSearch.linked_lines.iteritems():
+ for key, fields in obj.MetaSearch.linked_lines.items():
for line_elem in getattr(obj, key).all():
for field in fields:
diff --git a/truffe2/generic/startup.py b/truffe2/generic/startup.py
index a5cf3a08..c0ba331e 100644
--- a/truffe2/generic/startup.py
+++ b/truffe2/generic/startup.py
@@ -1,5 +1,5 @@
-from generic.models import GenericModel, GenericStateModel
+from generic.models import GenericModel
def startup():
diff --git a/truffe2/generic/templates/generic/generic/edit.html b/truffe2/generic/templates/generic/generic/edit.html
index 237ff79c..80227687 100644
--- a/truffe2/generic/templates/generic/generic/edit.html
+++ b/truffe2/generic/templates/generic/generic/edit.html
@@ -395,7 +395,7 @@ {{Model.MetaEdit.files_title}}
$('#id_unit_blank_name').parent().append("{% trans "Attention ! Une unité existe déjà avec ce nom. Est-ce que tu manques de droits pour utiliser directement l'unité ? Hors cas exceptionnels, il ne faut pas passer via une entité externe, mais demander les droits ! Demande au président !" %} ");
$('#id_unit_blank_name').on('change', function (elem) {
- $.ajax('{% url 'generic.views.check_unit_name' %}?name=' + escape($('#id_unit_blank_name').val()), {dataType: 'json'}).success(function (data) {
+ $.ajax('{% url 'generic-views-check_unit_name' %}?name=' + escape($('#id_unit_blank_name').val()), {dataType: 'json'}).success(function (data) {
if (data['result'] == 'ok') {
$('#id_unit_blank_name_warning').hide();
} else {
@@ -410,7 +410,7 @@ {{Model.MetaEdit.files_title}}
bonus = '?_{% if unit_mode %}&upk=' + $('#input_upk').val() + '{% endif %}{% if year_mode %}&ypk=' + $('#input_ypk').val() + '{% endif %}';
- $.ajax('{% url 'accounting_core.views.costcenter_available_list' %}' + bonus).success(function (data) {
+ $.ajax('{% url 'accounting_core-views-costcenter_available_list' %}' + bonus).success(function (data) {
var old_value = $('#id_costcenter').val();
@@ -437,7 +437,7 @@ {{Model.MetaEdit.files_title}}
function switch_to_tva_field(field) {
field.css('width', '100%').css('min-width', '100px').addClass('select2').removeClass('form-control').select2({
ajax: {
- url: '{% url 'accounting_core.views.tva_available_list' %}',
+ url: '{% url 'accounting_core-views-tva_available_list' %}',
dataType: "json",
data: function(term, page) {
return {
@@ -452,7 +452,7 @@ {{Model.MetaEdit.files_title}}
},
initSelection: function (element, callback) {
- $.ajax('{% url 'accounting_core.views.tva_available_list' %}?init=' + $(element).val()).success(function (data) {
+ $.ajax('{% url 'accounting_core-views-tva_available_list' %}?init=' + $(element).val()).success(function (data) {
callback(data[0]);
});
},
diff --git a/truffe2/generic/templates/generic/generic/show.html b/truffe2/generic/templates/generic/generic/show.html
index 81240eaa..77edb163 100644
--- a/truffe2/generic/templates/generic/generic/show.html
+++ b/truffe2/generic/templates/generic/generic/show.html
@@ -154,13 +154,13 @@ {% trans "Tags" %}
- {% for field, value in log_entry.json_extra_data.added.iteritems %}
+ {% for field, value in log_entry.json_extra_data.added.items %}
| {{field}} | | {{value|html_check_and_safe|truncatewords_html:500|force_escape}} |
{% endfor %}
- {% for field, value in log_entry.json_extra_data.edited.iteritems %}
+ {% for field, value in log_entry.json_extra_data.edited.items %}
| {{field}} | {{value.0|html_check_and_safe|truncatewords_html:500|force_escape}} | {{value.1|html_check_and_safe|truncatewords_html:500|force_escape}} |
{% endfor %}
- {% for field, value in log_entry.json_extra_data.deleted.iteritems %}
+ {% for field, value in log_entry.json_extra_data.deleted.items %}
| {{field}} | {{value|html_check_and_safe|truncatewords_html:500|force_escape}} | |
{% endfor %}
@@ -241,7 +241,7 @@ {% trans "Tags" %}
diff --git a/truffe2/generic/templates/generic/generic/show_state_switcher.html b/truffe2/generic/templates/generic/generic/show_state_switcher.html
index 4f5ab136..4a73226e 100644
--- a/truffe2/generic/templates/generic/generic/show_state_switcher.html
+++ b/truffe2/generic/templates/generic/generic/show_state_switcher.html
@@ -5,7 +5,7 @@
{% trans "Modifier" %}
|