• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tangentlabs / django-fancypages
86%
master: 84%

Build:
Build:
LAST BUILD BRANCH: feature/use_asset_library
DEFAULT BRANCH: master
Repo Added 15 Jul 2013 06:13AM UTC
Files 151
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH feature/simplify_form_loading
branch: feature/simplify_form_loading
CHANGE BRANCH
x
Reset
  • feature/simplify_form_loading
  • 0.3.0
  • develop
  • experimental/froala
  • feature/add_configurable_form_block
  • feature/add_editor_panel_cookie
  • feature/add_language_support
  • feature/increase_test_coverage
  • feature/make_siblings_available_in_navigation_block
  • feature/switch_to_marionette
  • feature/use_asset_library
  • feature/user_login_standalone_sandbox
  • fix/browser_test_screen_size
  • fix/django17_post_release_migrations
  • fix_factories
  • issue/33/support_for_django17
  • issue/50/fix_oscar_templates
  • master
  • refactor/add_translations
  • refactor/integrate_with_oscar
  • refactoring
  • release/0.2
  • release/0.3
  • requires-io-master
  • temporary_fix_not_recommended
  • test/branch_for_some_testing

pending completion
179

push

travis-ci

elbaschid
Improve form handling for content blocks

Using custom forms for content blocks can be problematic and cause
circular import issues. It is also quite tricky to simply modify a form
for an existing content block.

I am "fixing" this limitation by making it possible to register forms
for content blocks using ``register_block_form``. When a form is
required for a content block, the previous functionality is still
working the same. However, if a form is registered for a model, it takes
precedence and is returned when the form class is looked up for this
block.

This in itself does not avoid circular import. To avoid this issue,
forms can now be specified using import paths such as
``fancypages.dashboard.forms.BlockForm`` and are only imported the first
time the form class for a model is looked up. At that point all models
should be fully loaded.

65 of 65 new or added lines in 6 files covered. (100.0%)

2207 of 2559 relevant lines covered (86.24%)

6.88 hits per line

Relevant lines Covered
Build:
Build:
2559 RELEVANT LINES 2207 COVERED LINES
6.88 HITS PER LINE
Source Files on feature/simplify_form_loading
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
179 feature/simplify_form_loading Improve form handling for content blocks Using custom forms for content blocks can be problematic and cause circular import issues. It is also quite tricky to simply modify a form for an existing content block. I am "fixing" this limitation by m... push 12 Feb 2014 06:43AM UTC elbaschid travis-ci pending completion  
See All Builds (240)
  • Repo on GitHub
  • CI Project
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc