kalmanolah / 925r Goto Github PK
View Code? Open in Web Editor NEWninetofiver (925r): a free and open source time and leave tracking application.
License: GNU General Public License v3.0
ninetofiver (925r): a free and open source time and leave tracking application.
License: GNU General Public License v3.0
[02/Sep/2017 17:35:59] "GET /api/v1/my_contracts?page_size=9999 HTTP/1.1" 301 0 [44/1363]
Internal Server Error: /api/v1/my_contracts/
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/django/core/handlers/exception.py", line 39, in inner
response = get_response(request)
File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.5/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/rest_framework/viewsets.py", line 83, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/rest_framework/views.py", line 477, in dispatch
response = self.handle_exception(exc)
File "/usr/local/lib/python3.5/site-packages/rest_framework/views.py", line 437, in handle_exception
self.raise_uncaught_exception(exc)
File "/usr/local/lib/python3.5/site-packages/rest_framework/views.py", line 474, in dispatch
response = handler(request, *args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/rest_framework/mixins.py", line 42, in list
page = self.paginate_queryset(queryset)
File "/usr/local/lib/python3.5/site-packages/rest_framework/generics.py", line 172, in paginate_queryset
return self.paginator.paginate_queryset(queryset, self.request, view=self)
File "/usr/local/lib/python3.5/site-packages/rest_framework/pagination.py", line 223, in paginate_queryset
return list(self.page)
File "/usr/local/lib/python3.5/_collections_abc.py", line 817, in __iter__
v = self[i]
File "/usr/local/lib/python3.5/site-packages/django/core/paginator.py", line 120, in __getitem__
self.object_list = list(self.object_list)
File "/usr/local/lib/python3.5/site-packages/django/db/models/query.py", line 256, in __iter__
self._fetch_all()
File "/usr/local/lib/python3.5/site-packages/django/db/models/query.py", line 1087, in _fetch_all
self._result_cache = list(self.iterator())
File "/usr/local/lib/python3.5/site-packages/polymorphic/query.py", line 445, in iterator
real_results = self._get_real_instances(base_result_objects)
File "/usr/local/lib/python3.5/site-packages/polymorphic/query.py", line 328, in _get_real_instances
real_concrete_class = base_object.get_real_instance_class()
File "/usr/local/lib/python3.5/site-packages/polymorphic/models.py", line 117, in get_real_instance_class
and not issubclass(model, self.__class__._meta.proxy_for_model):
The Contracts (ProjectContract, ConsultancyContract, SupportContract) are implemented as a Child / Parent model.
This is very nice as all Contracts are grouped and there is an easy workflow in the creation.
However this means that there is only 1 list view which can show only limited items.
eg. the start / end date of ConsultancyContracts can not be shown in the Contracts list.
Is it ok to reimplement it without the Child / Parent model ?
This means that there is not a Contract entry in the admin but 3 different entries.
Each of these 3 entries has a more detailed list and filter view.
Will this have any consequences on other parts of the application ?
For example: The leaves page has like 1000's of entries and it's at the moment pretty impossible to search by user for instance.
There are different kinds of contracts:
Ideally inherit from base sorting filter, allowing sorting by at least id, created_at, updated_at.
See title
This is needed for sick leaves where a doctors note should be attached.
User list is too large (and not correctly sorted) to show as list
It'd be neat to have one call to render a complete calendar. With all performances, holidays and leaves of the current user.
Requirements:
Return performances
Return holidays
Return leaves
Optionally disable entity types.
Choose output based on Week/Year
Choose output based on Month/Year
Output as an array of arrays. An array for every day ?
Before:
Day Description
1 Foo
1 Bar
1 Baz
2 Foo
2 Bar
2 Baz
After:
Day Description
1 Foo
Bar
Baz
2 Foo
Bar
Baz
It shouldn't be possible to create holidays with identical name, date and country
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.