Skip to content

Commit

Permalink
Merge pull request #2667 from FroggyFlox/2666-use_for_related_fields-…
Browse files Browse the repository at this point in the history
…is-deprecated-in-Django-2.0

Set `Meta.base_manager_name` on 'storageadmin.Disk' #2666
  • Loading branch information
phillxnet authored Sep 15, 2023
2 parents b4128ad + 52f428c commit a80fdeb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rockstor/storageadmin/models/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
class AttachedManager(models.Manager):
"""Manager subclass to return only attached disks"""

use_for_related_fields = True

def attached(self):
# Return default queryset after excluding name="detached-*" items.
# Alternative lookup type __regex=r'^detached-'
Expand Down Expand Up @@ -151,3 +149,4 @@ def target_name(self, *args, **kwargs):

class Meta:
app_label = "storageadmin"
base_manager_name = "attached"

0 comments on commit a80fdeb

Please sign in to comment.