Skip to content

Instantly share code, notes, and snippets.

I am available

Ai Jogja aijogja

I am available
View GitHub Profile
aijogja /
Created Aug 5, 2019 — forked from kottenator/
Django's multiple-choice model field with static choices
Field with multiple *static* choices (not via m2m)
Value is stored in DB as comma-separated values
Default widget is forms.CheckboxSelectMultiple
Python value: list of values
Original Django snippet:
It's 6 years old and doesn't work with latest Django
Also it implements 'max_choices' functionality - I have removed it for simplicity
aijogja / requirements.txt
Last active Jul 9, 2019
Selenium Tokopedia Search
View requirements.txt