Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Department Tours form #189

Closed
wants to merge 21 commits into from
Closed

Department Tours form #189

wants to merge 21 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 27, 2020

No description provided.

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Mar 2, 2020

This pull request introduces 9 alerts when merging 8b40e25 into 78b68c7 - view on LGTM.com

new alerts:

  • 8 for Unused import
  • 1 for 'import *' may pollute namespace

@lgtm-com
Copy link
Contributor

lgtm-com bot commented Mar 2, 2020

This pull request introduces 9 alerts when merging a4e9f4a into 78b68c7 - view on LGTM.com

new alerts:

  • 8 for Unused import
  • 1 for 'import *' may pollute namespace

@ghost ghost linked an issue Mar 6, 2020 that may be closed by this pull request
Copy link
Contributor

@bri25yu bri25yu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great code in tours.py! There's a few changes requested here. Also, is it possible to combine all the migrations into a single migrations file since this is just for a single PR? There are also merge conflicts with master that need to be resolved! The Pipfile.lock file was deleted -- not sure why?



class TourRequest(forms.ModelForm):
date = forms.DateField(widget=SelectDateWidget(), label='Desired Date')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's currently possible to request a dept tour before the current time. We should add some sort of check in so that there's less confusion on both sides of the dept tour request e.g. Rehan reads the time is for last month and not this month and he has to reach out to the dept tour requester to confirm that they meant this upcoming month.

This applies to both the mm/dd/yyyy:
hknconnie dept tour pr date submitted time before current time
and to the hh/mm on the next line down:
hknconnie dept tour pr date submitted time before current time today


class TourRequest(forms.ModelForm):
date = forms.DateField(widget=SelectDateWidget(), label='Desired Date')
desired_time = forms.TimeField(help_text='hh:mm 24-hour time', label='Desired Time')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since some students may be flying in from the East Coast or internationally, we should take into account time zones for scheduling a dept tour. Maybe specify that all of these times are in PST (-7:00 GMT) and/or put in some conversion like this https://www.timeanddate.com/worldclock/converter.html?iso=20200317T200000&p1=791. This particular website encodes listed time zones in the URL, so we can use that to our advantage!

hknweb/tours/urls.py Show resolved Hide resolved
hknweb/tours/views.py Show resolved Hide resolved
hknweb/tours/views.py Show resolved Hide resolved
hknweb/tours/models.py Show resolved Hide resolved
hknweb/tours/models.py Show resolved Hide resolved
hknweb/tours/views.py Show resolved Hide resolved
hknweb/tours/forms.py Outdated Show resolved Hide resolved
hknweb/tours/views.py Show resolved Hide resolved
@bri25yu bri25yu closed this Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprel Admin (department tours)
1 participant