Skip to content

Instantly share code, notes, and snippets.

View Farhaduneci's full-sized avatar
🔫
Sarbazi

Farhad Uneci Farhaduneci

🔫
Sarbazi
View GitHub Profile
@imomaliev
imomaliev / fields.py
Last active January 12, 2024 14:13 — forked from jpadilla/fields.py
CharacterSeparatedManyField - A Django REST framework field that separates a string with a given separator into a native list and reverts a list into a string separated with a given separator.
from rest_framework import serializers
from rest_framework.fields import empty
from rest_framework.utils import html
class CharacterSeparatedField(serializers.ListField):
"""
Character separated ListField.
Based on https://gist.github.com/jpadilla/8792723.
@cgons
cgons / mac-setup-for-python.md
Last active June 11, 2024 10:38
Python Dev Setup for (M1) Macs