#336: bhdashboard.model.ModelBase insert method fails if no unique fields
specified
---------------------------+--------------------
Reporter: franco | Owner: nobody
Type: defect | Status: new
Priority: critical | Milestone:
Component: multiproduct | Version: 0.3.0
Resolution: | Keywords:
---------------------------+--------------------
Comment (by franco):
This
[https://issues.apache.org/bloodhound/attachment/ticket/336/bloodhound_t336
attachment] is a patch that adds a test case to multiproduct.test.model
module, reproducing the error
Sorry not submitting a solution patch.. I have some code related to
ModelBase that is not quite finished yet... in my local copy I added a
first condition like this:[[BR]]
{{{
elif len(self._meta['unique_fields']) \
and len(self.select(self._env, where = ...
}}}
Best regards,
--
Ticket URL: <https://issues.apache.org/bloodhound/ticket/336#comment:1>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker