Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyModel(models.Model):
- my_list_of_stuff = models.CharField(max_length=9999)
- def my_list_of_stuff_split(self):
- # this will return a list eg. `["foo, "bar", "pop" ...]`
- return my_list_of_stuff.split(",")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement