Giter VIP home page Giter VIP logo

Comments (20)

shreyagupta30 avatar shreyagupta30 commented on June 23, 2024 1

Hi @Kajol-Kumari, can I work on this as a part of OSH?

from vms.

Kajol-Kumari avatar Kajol-Kumari commented on June 23, 2024 1

Hey @shreyagupta30 please go ahead with this issue.

from vms.

shreyagupta30 avatar shreyagupta30 commented on June 23, 2024 1

Hey @shreyagupta30 can you please provide the update on your work progress for this issue.

I am working on it, will be able to land a PR in a day or two.

from vms.

devkapilbansal avatar devkapilbansal commented on June 23, 2024 1

Thanks, @Kajol-Kumari I will make a pull request soon.

from vms.

Kajol-Kumari avatar Kajol-Kumari commented on June 23, 2024

Hey @shreyagupta30 can you please provide the update on your work progress for this issue.

from vms.

adwait2001 avatar adwait2001 commented on June 23, 2024

can you assign me this task

from vms.

sujal111 avatar sujal111 commented on June 23, 2024

I am willing to work and solve this issue. Please assign me the same

from vms.

vj-codes avatar vj-codes commented on June 23, 2024

How's the PR going? @shreyagupta30

from vms.

devkapilbansal avatar devkapilbansal commented on June 23, 2024

@vj-codes can you assign me this issue?

from vms.

Kajol-Kumari avatar Kajol-Kumari commented on June 23, 2024

Unassigning @shreyagupta30 as I haven't heard back for quite a while. @KapilBansal320 I am assigning it to you as I can see you don't have any issue on you plate as of now and @sujal111 please complete your assigned issue.

from vms.

devkapilbansal avatar devkapilbansal commented on June 23, 2024

Hi, @Kajol-Kumari After setting up, I try to register as an Admin but got this error:
errorvms

Can you please tell me where I got wrong

Here is the full traceback that I got:

Environment:


Request Method: POST
Request URL: http://localhost:8000/en-us/registration/signup_administrator/

Django Version: 2.0
Python Version: 3.8.2
Installed Applications:
('authentication',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'administrator',
 'event',
 'home',
 'job',
 'organization',
 'registration',
 'shift',
 'volunteer',
 'cities_light',
 'pom',
 'rest_framework',
 'easy_pdf',
 'vms')
Installed Middleware:
['django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']



Traceback:

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/core/handlers/exception.py" in inner
  35.             response = get_response(request)

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response
  128.                 response = self.process_exception_by_middleware(e, request)

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response
  126.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/views/generic/base.py" in view
  69.             return self.dispatch(request, *args, **kwargs)

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/utils/decorators.py" in _wrapper
  62.             return bound_func(*args, **kwargs)

File "/home/kapil/Development/ANITA-B/vms/vms/registration/utils.py" in wrapper
  14.         return func(request, *args, **kwargs)

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/utils/decorators.py" in bound_func
  58.                 return func.__get__(self, type(self))(*args2, **kwargs2)

File "/home/kapil/Development/ANITA-B/vms/vms/registration/views.py" in dispatch
  49.         return super(AdministratorSignupView, self).dispatch(*args, **kwargs)

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/views/generic/base.py" in dispatch
  89.         return handler(request, *args, **kwargs)

File "/home/kapil/Development/ANITA-B/vms/vms/registration/views.py" in post
  105.                     admin_city = City.objects.get(pk=admin_city_name)

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/db/models/manager.py" in manager_method
  82.                 return getattr(self.get_queryset(), name)(*args, **kwargs)

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/db/models/query.py" in get
  394.         clone = self.filter(*args, **kwargs)

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/db/models/query.py" in filter
  836.         return self._filter_or_exclude(False, *args, **kwargs)

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/db/models/query.py" in _filter_or_exclude
  854.             clone.query.add_q(Q(*args, **kwargs))

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/db/models/sql/query.py" in add_q
  1252.         clause, _ = self._add_q(q_object, self.used_aliases)

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/db/models/sql/query.py" in _add_q
  1273.                 child_clause, needed_inner = self.build_filter(

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/db/models/sql/query.py" in build_filter
  1214.         condition = self.build_lookup(lookups, col, value)

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/db/models/sql/query.py" in build_lookup
  1084.         lookup = lookup_class(lhs, rhs)

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/db/models/lookups.py" in __init__
  18.         self.rhs = self.get_prep_lookup()

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/db/models/lookups.py" in get_prep_lookup
  68.             return self.lhs.output_field.get_prep_value(self.rhs)

File "/home/kapil/Development/ANITA-B/source_vms/lib/python3.8/site-packages/django/db/models/fields/__init__.py" in get_prep_value
  947.         return int(value)

Exception Type: ValueError at /en-us/registration/signup_administrator/
Exception Value: invalid literal for int() with base 10: 'New Delhi'

from vms.

SanketDG avatar SanketDG commented on June 23, 2024

From what I grasp, whatever you enter as "New Delhi" in the form is actually expecting a integer.

from vms.

devkapilbansal avatar devkapilbansal commented on June 23, 2024

@SanketDG but form provides me with a drop down menu only.

from vms.

devkapilbansal avatar devkapilbansal commented on June 23, 2024

I will open an issue for this too soon

from vms.

Kajol-Kumari avatar Kajol-Kumari commented on June 23, 2024

@KapilBansal320 can please verify once if it's working for other cities listed in the dropdown?

from vms.

devkapilbansal avatar devkapilbansal commented on June 23, 2024

@Kajol-Kumari issue arises for other cities as well.

Opened an issue for this at #1121

from vms.

devkapilbansal avatar devkapilbansal commented on June 23, 2024

@Kajol-Kumari @vj-codes can you provide me with a way to solve this. As libraries like django-cities-light and django-easy-pdf don't support Django 3 yet.

Or should I search for their alternatives now.

from vms.

SanketDG avatar SanketDG commented on June 23, 2024

Yes, django-cities-light is in sad state of affairs, please try to look for alternatives.

from vms.

devkapilbansal avatar devkapilbansal commented on June 23, 2024

At first, I am testing this repositories to find for bugs and to understand it better. Please look at issues opened by me too.

from vms.

devkapilbansal avatar devkapilbansal commented on June 23, 2024

Unassigning at this moment. Will look into this if I found better alternatives.

from vms.

Related Issues (20)

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.