Eliminate redundant code obsoleted by full_clean()
Change-Id: I4d629c82101147dfc7b007e749b99ed5685b3c2a
diff --git a/VERSION b/VERSION
index a39c0b7..348fc11 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.1.11
+2.1.12
diff --git a/containers/chameleon/Dockerfile.chameleon b/containers/chameleon/Dockerfile.chameleon
index 103e773..cf9deeb 100644
--- a/containers/chameleon/Dockerfile.chameleon
+++ b/containers/chameleon/Dockerfile.chameleon
@@ -13,7 +13,7 @@
# limitations under the License.
# xosproject/chameleon
-FROM xosproject/xos-base:2.1.11
+FROM xosproject/xos-base:2.1.12
# xos-base already has protoc and dependencies installed
diff --git a/containers/xos/Dockerfile.client b/containers/xos/Dockerfile.client
index bee6909..feea863 100644
--- a/containers/xos/Dockerfile.client
+++ b/containers/xos/Dockerfile.client
@@ -13,7 +13,7 @@
# limitations under the License.
# xosproject/xos-client
-FROM xosproject/xos-libraries:2.1.11
+FROM xosproject/xos-libraries:2.1.12
# Install XOS client
COPY xos/xos_client /tmp/xos_client
diff --git a/containers/xos/Dockerfile.libraries b/containers/xos/Dockerfile.libraries
index 07efd91..5c94275 100644
--- a/containers/xos/Dockerfile.libraries
+++ b/containers/xos/Dockerfile.libraries
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-FROM xosproject/xos-base:2.1.11
+FROM xosproject/xos-base:2.1.12
# Add libraries
COPY lib /opt/xos/lib
diff --git a/containers/xos/Dockerfile.synchronizer-base b/containers/xos/Dockerfile.synchronizer-base
index aa5f6fb..6a568d3 100644
--- a/containers/xos/Dockerfile.synchronizer-base
+++ b/containers/xos/Dockerfile.synchronizer-base
@@ -13,7 +13,7 @@
# limitations under the License.
# xosproject/xos-synchronizer-base
-FROM xosproject/xos-client:2.1.11
+FROM xosproject/xos-client:2.1.12
COPY xos/synchronizers/new_base /opt/xos/synchronizers/new_base
COPY xos/xos/logger.py /opt/xos/xos/logger.py
diff --git a/containers/xos/Dockerfile.xos-core b/containers/xos/Dockerfile.xos-core
index a00c1c9..a22bdf0 100644
--- a/containers/xos/Dockerfile.xos-core
+++ b/containers/xos/Dockerfile.xos-core
@@ -13,7 +13,7 @@
# limitations under the License.
# xosproject/xos-core
-FROM xosproject/xos-libraries:2.1.11
+FROM xosproject/xos-libraries:2.1.12
# Install XOS
ADD xos /opt/xos
diff --git a/xos/core/models/xosbase.py b/xos/core/models/xosbase.py
index 5a327ac..94bbb68 100644
--- a/xos/core/models/xosbase.py
+++ b/xos/core/models/xosbase.py
@@ -173,14 +173,6 @@
log.error('A non Synchronizer is trying to update fields marked as feedback_state', model=self._dict, feedback_state_fields=self.feedback_state_fields, caller_kind=caller_kind, feedback_changed=feedback_changed)
raise XOSPermissionDenied('A non Synchronizer is trying to update fields marked as feedback_state: %s' % feedback_changed)
- # Django only enforces field.blank=False during form validation. We'd like it to be enforced when saving the
- # model.
- for field in self._meta.fields:
- if field.get_internal_type() == "CharField":
- if getattr(field, "blank", None)==False:
- if getattr(self, field.name) == "":
- raise XOSValidationError("Blank is not allowed on field %s" % field.name)
-
if (caller_kind != "synchronizer") or always_update_timestamp:
# Non-synchronizers update the `updated` timestamp
self.updated = timezone.now()