Skip to content

Commit

Permalink
[qa] Minor improvement of last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Mar 31, 2019
1 parent d3ae2ed commit 487f13f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openwisp_controller/config/admin.py
Expand Up @@ -22,7 +22,7 @@ class Meta(AbstractConfigForm.Meta):

def get_temp_model_instance(self, **options):
config_model = self.Meta.model
instance = self.Meta.model(**options)
instance = config_model(**options)
device_model = config_model.device.field.related_model
org = Organization.objects.get(pk=self.data['organization'])
instance.device = device_model(
Expand Down

0 comments on commit 487f13f

Please sign in to comment.