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

ic-labs / django-icekit / 785
73%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: agsa/master
DEFAULT BRANCH: develop
Ran 01 May 2017 02:38AM UTC
Jobs 1
Files 292
Run time 13s
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

pending completion
785

push

travis-ci

jmurty
#213 Add easy write for API serializers

The `WritableSerializerHelperMixin` helper/mixin class is
now available to handle writable related fields in a general
way in a serializer, without requiring custom code in every
case where a writable item has writable relationships.

The `WritableSerializerHelperMixin` is a renamed version of
the prior `ModelSubSerializerParentMixin` and still handles
`ModelSubSerializer` fields transparently, no extra work
required.

For other related fields based on the standard
`ModelSerializer` you can now add field-specific settings
as `Meta.writable_related_fields` to map field names to
`WritableRelatedFieldSettings` objects that define how to
look up a related model instance, and whether to permit
write operations to create or update related instances.

NOTE: This commit adds a dependency on the `attrs` library
to make definition of a small class easier, and because I
want to use it in general.

NOTE 2: This is a first pass at handling a complex set of
situations, which should really be handled in the DRF base
library but do not seem to be. Consider this implementation
to be experimental for now, and it is definitely incomplete.

4458 of 6279 relevant lines covered (71.0%)

0.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 785.1 01 May 2017 02:38AM UTC 0
71.0
Travis Job 785.1
Source Files on build 785
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #785
  • 815c6765 on github
  • Prev Build on 213-add-collections-api (#776)
  • Next Build on 213-add-collections-api (#786)
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

© 2026 Coveralls, Inc