Skip to content

Move create_option functionality into it's own method #744

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

Merged
merged 1 commit into from
Sep 21, 2016

Conversation

jpic
Copy link
Member

@jpic jpic commented Sep 21, 2016

Main motivation was wanting to override this behaviour without touching
any other parts of render_to_response but I think this is also a clearer
way to organise the code.

Actually - in most cases all I really want to change is the wording of
the create text. How would you feel about a get_create_label(self,
queryset) method?

(example use case - I if someone enters a string with an @ in it I
create a new contact with an email address, otherwise I assume it's a
name - I'd like to make this behaviour explicit via the create label)

Main motivation was wanting to override this behaviour without touching
any other parts of render_to_response but I think this is also a clearer
way to organise the code.

Actually - in most cases all I really want to change is the wording of
the create text. How would you feel about a get_create_label(self,
queryset) method?

(example use case - I if someone enters a string with an @ in it I
create a new contact with an email address, otherwise I assume it's a
name - I'd like to make this behaviour explicit via the create label)
@codecov-io
Copy link

codecov-io commented Sep 21, 2016

Current coverage is 97.45% (diff: 100%)

Merging #744 into master will increase coverage by <.01%

@@             master       #744   diff @@
==========================================
  Files           115        115          
  Lines          1801       1804     +3   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           1755       1758     +3   
  Misses           46         46          
  Partials          0          0          

Powered by Codecov. Last update 0d7ec6b...3505cd8

@jpic jpic merged commit ece00ff into master Sep 21, 2016
@jpic jpic deleted the factor_create_option_ branch September 21, 2016 18:58
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.

3 participants