Closed Bug 1094197 Opened 8 years ago Closed 8 years ago

fix JSONObjectField to have a default default of u'{}'

Categories

(Input Graveyard :: Code Quality, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: willkg)

Details

(Whiteboard: u=dev c=codequality p=1 s=input.2014q4)

Right now, whenever I use a JSONObjectField in a data model, I have to do this:

    foo = JSONObjectField(default=u'{}')

That default should be the default default.

The code for JSONObjectField is at fjord/base/models.py .

This bug covers:

1. fixing the JSONObjectField so that the default defaults to u'{}'
2. go through the models.py files and remove the extra text
Grabbing this to fix now since it's annoying. It's an easy fix.
Assignee: nobody → willkg
Status: NEW → ASSIGNED
Whiteboard: u=dev c=codequality p=1 s=input.2014q4
Pushed this to prod just now.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Product: Input → Input Graveyard
You need to log in before you can comment on or make changes to this bug.