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

Implement formfield support in fields #93

Merged
merged 1 commit into from
Nov 19, 2018
Merged

Implement formfield support in fields #93

merged 1 commit into from
Nov 19, 2018

Conversation

shosca
Copy link
Owner

@shosca shosca commented Nov 17, 2018

  • Added nice api for model_info with better repr and magics so now you can do something like this:
info = model_info(Person)
form_field = info.first_name.formfield()
  • Allow overriding form class with our custom fields by passing form_class=.. or using info["form_class"]

@shosca shosca force-pushed the formfield-callback branch 2 times, most recently from 8d757e6 to 82c5513 Compare November 17, 2018 05:22
@coveralls
Copy link

coveralls commented Nov 17, 2018

Pull Request Test Coverage Report for Build 827

  • 112 of 112 (100.0%) changed or added relevant lines in 4 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.002%) to 99.935%

Files with Coverage Reduction New Missed Lines %
django_sorcery/management/base.py 2 100.0%
Totals Coverage Status
Change from base Build 825: 0.002%
Covered Lines: 3095
Relevant Lines: 3097

💛 - Coveralls

@shosca shosca force-pushed the formfield-callback branch 9 times, most recently from 6461ae4 to db82290 Compare November 17, 2018 18:52
@shosca shosca requested a review from miki725 November 17, 2018 18:57
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.

None yet

2 participants