Change History (1)

Does it really insert None for counter_id (resulting in an SQL syntax error), or rather NULL (resulting still in an error due to the "not null" constraint)? If it's the first case, please reopen the ticket.

In the latter case, this is expected behaviour which is described in detail in the documentation about get_or_create. It does not make a sense to use a restricted query set like this.