Add admin support for encrypted models

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: django
    • None
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Accessing the admin changelist of an encrypted model (e.g. /admin/encrypt/patient/) fails with the error: Aggregation stage $internalFacetTeeConsumer is not allowed or supported with automatic encryption.

      This message occurs when calling QuerySet.count() on an encrypted model.

      This may be fixed by using a custom ModelAdmin for encrypted models. Along with setting ModelAdmin.setting show_full_result_count = False, the ModelAdmin needs a custom paginator that uses len(objects_list) instead of count(). This code is likely already out there.

            Assignee:
            Alex Clark
            Reporter:
            Alex Clark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: