Skip to content

Look into cache_choices has been deprecated warning. #70

Description

@theskumar

We are getting a lot of warning related to cache_choices, it would be nice to go with any alternatives to it as suggested by Django official doc.

spoken-website/events/forms.py:400: RemovedInDjango19Warning: cache_choices has been deprecated and will be removed in Django 1.9.
  language_prefered = forms.ModelChoiceField(cache_choices=True, widget = forms.Select(attrs = {}), queryset = Language.objects.order_by('name'), empty_label = "--- None ---", error_messages = {'required':'Language field required.'})

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions