Giter Site home page Giter Site logo

kalmanolah / 925r Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 8.0 1.09 MB

ninetofiver (925r): a free and open source time and leave tracking application.

License: GNU General Public License v3.0

Python 85.91% HTML 13.87% CSS 0.16% Dockerfile 0.05% Shell 0.01%

925r's People

Contributors

bartdecaluwe avatar bramver avatar kalmanolah avatar raskas avatar roidelapluie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

925r's Issues

I can't list contracts

[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):

Rewrite of Admin implementation of Contracts

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 ?

Calendar call

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.