Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
refactor: rename model variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gabor-boros committed Aug 30, 2021
1 parent 0676c8b commit eaed5a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions instance/migrations/0144_make_redis_username_unique.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@


def generate_credentials(apps, schema_editor):
RedisServer = apps.get_model('instance', 'OpenEdXInstance')
for row in RedisServer.objects.all():
Model = apps.get_model('instance', 'OpenEdXInstance')
for row in Model.objects.all():
row.redis_username = instance.models.mixins.redis.random_username()
row.redis_password = instance.models.mixins.redis.random_password()
row.save(update_fields=['redis_username', 'redis_password'])
Expand Down

0 comments on commit eaed5a8

Please sign in to comment.