Make Condition and ConditionSet serializable in JSONField.

Review Request #8351 — Created Aug. 26, 2016 and submitted

Information

Djblets
release-0.10.x
b484607...

Reviewers

Condition and ConditionSet now define a to_json() method (an alias
of serialize()), allowing them to be serialized in a JSONField
(or anywhere else where a DjbletsJSONEncoder is used).

Tested saving a ConditionSet to a JSONField without having to
resort to manually serializing during save.

Description From Last Updated

Your description says serializable but it should be serialize.

brenniebrennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        djblets/conditions/conditions.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        djblets/conditions/conditions.py
    
    
  2. 
      
brennie
  1. 
      
  2. Your description says serializable but it should be serialize.

  3. 
      
chipx86
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-0.10.x (ae581d0)
Loading...