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

refactoring field to inherit from RegexField #232

Merged
merged 2 commits into from
Nov 5, 2016

Conversation

burhan
Copy link
Contributor

@burhan burhan commented May 7, 2016

As discussed in #195 - this PR refactors the field to inherit from RegexField; further it simplifies the regular expression as well.

@burhan burhan force-pushed the kw-civil-id-refactor branch 2 times, most recently from eae7f1f to d733bea Compare May 7, 2016 16:47

def has_valid_checksum(value):
Copy link
Member

Choose a reason for hiding this comment

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

Since you're making this a public function, you should rename this to be more meaningful. kw_civil_id_number_has_valid_checksum could work but I'm also open to other suggestions.

@benkonrath
Copy link
Member

@burhan Can you rebase this with master so that it can be merged? Thanks.

@burhan burhan force-pushed the kw-civil-id-refactor branch from ccdd2ac to 8770f80 Compare November 5, 2016 14:19
@burhan
Copy link
Contributor Author

burhan commented Nov 5, 2016

rebased

@benkonrath benkonrath merged commit 982329a into django:master Nov 5, 2016
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.

2 participants