Skip to content

Conversation

pablorecio
Copy link
Contributor

Copy link
Member

Choose a reason for hiding this comment

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

Why not, what's the problem supporting "/"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think you can have problems supporting "/" inside a URL if we don't encode it.

Copy link
Member

Choose a reason for hiding this comment

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

If the user enters it it's the job of the browser to escape it, otherwise the programmer has to take care of escaping, I don't see why it shouldn't work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Working on the tests I realized that it was my fault: I was using a wrong date format.

@apollo13
Copy link
Member

Misses tests!

@pablorecio
Copy link
Contributor Author

I didn't add tests here because I couldn't find any tests related to this feature, and I'm not sure where I could add this.

@apollo13
Copy link
Member

apollo13 commented Jan 1, 2013

tests/regressiontests/admin_views sounds like a good place to add some.

@pablorecio
Copy link
Contributor Author

I fixed the things you commented @apollo13, and added some tests. Please let me know if there's something I can improve there.

@apollo13
Copy link
Member

@pyriku I have to check if we want to support localized input or just ISO-format strings.

One thing to be changed is that you shouldn't use settings.DATETIME_INPUT_FORMATS but the value from the current activate locale.

…o improves tests for being more atomic and precise
@pablorecio
Copy link
Contributor Author

I'd like to add some documentation, but I wasn't able to find where it's this feature documented.

@mjtamlyn
Copy link
Member

(patch does not currently apply cleanly)

Conflicts:
	django/contrib/admin/options.py
@pablorecio
Copy link
Contributor Author

Conflicts solved, sorry about it.

Copy link
Member

Choose a reason for hiding this comment

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

I would put this on 1 line -- it's okay to have longer lines if it helps readability

@timgraham
Copy link
Member

If you can update this, please squash commits and follow our commit message guidelines (include ticket number and commit message in past tense). Thanks!

@timgraham
Copy link
Member

Closing due to inactivity, please send a new PR if you can update it, thanks!

@timgraham timgraham closed this Aug 1, 2014
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.

4 participants