Skip to content

Commit

Permalink
deps: removed django-multiselectedfield
Browse files Browse the repository at this point in the history
  • Loading branch information
m4ra committed Dec 12, 2023
1 parent f7e08b6 commit ee18d9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
18 changes: 2 additions & 16 deletions adhocracy4/projects/fields.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
from multiselectfield import MultiSelectField
from django.db import models


class TopicField(MultiSelectField):
class TopicField(models.CharField):
"""Deprecated, don't use"""

# TODO: remove once topic migrations are rolled out
def __init__(self, *args, **kwargs):
kwargs["max_length"] = 254
kwargs["max_choices"] = 2
kwargs["default"] = ""
kwargs["blank"] = False
super().__init__(*args, **kwargs)

def contribute_to_class(self, cls, name, **kwargs):
self.choices = ()

# Call the super method at last so that choices are already initialized
super().contribute_to_class(cls, name, **kwargs)
1 change: 0 additions & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ https://github.com/liqd/django-ckeditor-5/releases/download/v0.2.11-liqd/django_
django-ckeditor==6.6.1
django-enumfield==3.1
django-filter==22.1
django-multiselectfield==0.1.12
django-widget-tweaks==1.4.12
djangorestframework==3.14.0
easy-thumbnails[svg]==2.8.5
Expand Down

0 comments on commit ee18d9d

Please sign in to comment.