Skip to content

Instantly share code, notes, and snippets.

@llund
Last active October 24, 2018 21:43
Show Gist options
  • Save llund/174b16bd89d150ebb49151e916e38a76 to your computer and use it in GitHub Desktop.
Save llund/174b16bd89d150ebb49151e916e38a76 to your computer and use it in GitHub Desktop.
class Foo(models.Model):
# fields
def get_bar(self):
pass
class FooSerializer(ModelSerializer):
class Meta:
model = Foo
fields = '...'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment