1. 27 Jun, 2022 6 commits
  2. 26 Jun, 2022 15 commits
  3. 25 Jun, 2022 17 commits
    • Guilhem Saurel's avatar
      Python 3.6 · fe6ad345
      Guilhem Saurel authored
      fe6ad345
    • Guilhem Saurel's avatar
      bump polymorphic to 1.3 · 3a1bbb4f
      Guilhem Saurel authored
      and drop more pin
      3a1bbb4f
    • Guilhem Saurel's avatar
      use mark_safe · 77550889
      Guilhem Saurel authored
      fix:
      coin/members/tests.py::MemberAdminTests::test_cant_change_username_when_editing
        /usr/local/lib/python2.7/site-packages/django/contrib/admin/helpers.py:212: RemovedInDjango20Warning: Deprecated allow_tags attribute used on <bound method MemberCurrentLoanInline.action_buttons of <hardware_provisioning.admin.MemberCurrentLoanInline object at 0x7fdae0539dd0>>. Use django.utils.html.format_html(), format_html_join(), or django.utils.safestring.mark_safe() instead.
      77550889
    • Guilhem Saurel's avatar
      temporarily unpin stuff to see clearer · 19ee670d
      Guilhem Saurel authored
      19ee670d
    • Guilhem Saurel's avatar
      Django 1.9 ! · 46d8c7df
      Guilhem Saurel authored
      kind of.
      
      Sorry, activelink, but you're not maintained anymore. We'll have to
      re-implement this functionnality if we really want it.
      46d8c7df
    • Guilhem Saurel's avatar
      ok, let's see this later. · 8a56e283
      Guilhem Saurel authored
      8a56e283
    • Guilhem Saurel's avatar
      switch to ipaddress · 7f98881e
      Guilhem Saurel authored
      to allow upgrade of django-netifield to >= 0.5. Its changelog states:
      > Most applications should not require any adjustments as a result of this change
      
      Clearly, this is not the case for us.
      
      patch netaddr for this.
      7f98881e
    • Guilhem Saurel's avatar
      docker: upgrade pip · 10f6bba8
      Guilhem Saurel authored
      10f6bba8
    • Guilhem Saurel's avatar
      update django-autocomplete-light imports · 9d4d9ded
      Guilhem Saurel authored
      ref its changelog at 2.2.0rc1
      9d4d9ded
    • Guilhem Saurel's avatar
      avoid importing urls.py in apps.py · 2858935b
      Guilhem Saurel authored
      fix:
      Traceback (most recent call last):
        File "./manage.py", line 10, in <module>
          execute_from_command_line(sys.argv)
        File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
          utility.execute()
        File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 327, in execute
          django.setup()
        File "/usr/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
          apps.populate(settings.INSTALLED_APPS)
        File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
          app_config = AppConfig.create(entry)
        File "/usr/local/lib/python2.7/site-packages/django/apps/config.py", line 116, in create
          mod = import_module(mod_path)
        File "/usr/local/lib/python2.7/importlib/__init__.py", line 37, in import_module
          __import__(name)
        File "/coin/vpn/apps.py", line 7, in <module>
          from . import urls
        File "/coin/vpn/urls.py", line 6, in <module>
          from .views import VPNView, VPNGeneratePasswordView, get_graph
        File "/coin/vpn/views.py", line 16, in <module>
          from coin.members.models import Member
        File "/coin/coin/members/models.py", line 4, in <module>
          import ldapdb.models
        File "/usr/local/lib/python2.7/site-packages/ldapdb/models/__init__.py", line 5, in <module>
          from ldapdb.models.base import Model  # noqa
        File "/usr/local/lib/python2.7/site-packages/ldapdb/models/base.py", line 20, in <module>
          class Model(django.db.models.base.Model):
        File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 94, in __new__
          app_config = apps.get_containing_app_config(module)
        File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py", line 239, in get_containing_app_config
          self.check_apps_ready()
        File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py", line 124, in check_apps_ready
          raise AppRegistryNotReady("Apps aren't loaded yet.")
      django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
      2858935b
    • Guilhem Saurel's avatar
      add utils_light.py · 1901ba17
      Guilhem Saurel authored
      fix:
      Traceback (most recent call last):
        File "./manage.py", line 10, in <module>
          execute_from_command_line(sys.argv)
        File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
          utility.execute()
        File "/usr/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 327, in execute
          django.setup()
        File "/usr/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
          apps.populate(settings.INSTALLED_APPS)
        File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py", line 85, in populate
          app_config = AppConfig.create(entry)
        File "/usr/local/lib/python2.7/site-packages/django/apps/config.py", line 116, in create
          mod = import_module(mod_path)
        File "/usr/local/lib/python2.7/importlib/__init__.py", line 37, in import_module
          __import__(name)
        File "/coin/hardware_provisioning/app.py", line 5, in <module>
          import coin.apps
        File "/coin/coin/apps.py", line 6, in <module>
          from .utils import rstrip_str
        File "/coin/coin/utils.py", line 22, in <module>
          from django.contrib.sites.models import Site
        File "/usr/local/lib/python2.7/site-packages/django/contrib/sites/models.py", line 83, in <module>
          class Site(models.Model):
        File "/usr/local/lib/python2.7/site-packages/django/db/models/base.py", line 94, in __new__
          app_config = apps.get_containing_app_config(module)
        File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py", line 239, in get_containing_app_config
          self.check_apps_ready()
        File "/usr/local/lib/python2.7/site-packages/django/apps/registry.py", line 124, in check_apps_ready
          raise AppRegistryNotReady("Apps aren't loaded yet.")
      django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
      1901ba17
    • Guilhem Saurel's avatar
      docker: use BUILDKIT cache · 96104cf3
      Guilhem Saurel authored
      96104cf3
    • Guilhem Saurel's avatar
      update to the TEMPLATES setting · 845057df
      Guilhem Saurel authored
      ref. https://docs.djangoproject.com/en/1.10/ref/templates/upgrading/
      
      fix pytest warning:
      
      /usr/local/lib/python2.7/site-packages/django/template/utils.py:37: RemovedInDjango110Warning: You haven't defined a TEMPLATES setting. You must do so before upgrading to Django 1.10. Otherwise Django will be unable to load templates.
      845057df
    • Guilhem Saurel's avatar
      bump polymorphic to 0.9 · 1c2c8bc0
      Guilhem Saurel authored
      to start upgrade path, as pytest complains about:
      
      /usr/local/lib/python2.7/site-packages/polymorphic/query.py:258: RemovedInDjango110Warning: The aggregates property is deprecated. Use annotations instead.
          if self.query.aggregates:
      1c2c8bc0
    • Guilhem Saurel's avatar
      remove-me · 09108d81
      Guilhem Saurel authored
      09108d81
    • Guilhem Saurel's avatar
      ignore custom_hooks generated by tests · b222366f
      Guilhem Saurel authored
      b222366f
    • Guilhem Saurel's avatar
      add migration · 534ccea0
      Guilhem Saurel authored
      534ccea0
  4. 20 Feb, 2022 2 commits