Commit 6bb5f9fa authored by Florent Chehab's avatar Florent Chehab

Checked that all the JSON Fields are meaning ful

* No particular action wad required
* Simply added some comments when no validators are present

Fixes #113
parent 8f8234cb
Pipeline #38709 passed with stages
in 3 minutes and 19 seconds
......@@ -26,6 +26,7 @@ class Exchange(BaseModel):
utc_allow_courses = models.BooleanField()
utc_allow_login = models.BooleanField()
# No specific validation of the JSON is required here
courses = JSONField(null=True) # Store data from ENT
......
......@@ -26,6 +26,8 @@ class PendingModeration(BaseModel):
updated_on = models.DateTimeField(null=True)
# Object pending moderation
# No validation of the JSON it's used internally only and the data is
# validated before arriving here.
new_object = JSONField(default=dict)
class Meta:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment