resources.py 258 B

12345678910
  1. from import_export import resources
  2. from .models import Team
  3. class TeamResource(resources.ModelResource):
  4. class Meta:
  5. model = Team
  6. skip_unchanged = True
  7. fields = ("id", "slug", "created", "organization", "projects", "members")