mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Versionable.clone_shallow() has to set version_end_date records
This commit is contained in:
@@ -71,7 +71,8 @@ class Versionable(BaseVersionable):
|
||||
source = getattr(self, manager_field_name) # returns a VersionedRelatedManager instance
|
||||
# Destination: the clone, where the cloned relations should point to
|
||||
source.through.objects.filter(**{source.source_field.attname: clone.id}).update(**{
|
||||
source.source_field.attname: self.id})
|
||||
source.source_field.attname: self.id, 'version_end_date': forced_version_date
|
||||
})
|
||||
|
||||
|
||||
class UserManager(BaseUserManager):
|
||||
|
||||
Reference in New Issue
Block a user