This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The credit endpoint has been updated to use PUT to create new CreditCourse objects. The publisher has been updated to use this method, greatly simplifying the code necessary to create these objects. ECOM-2524
- Loading branch information
Clinton Blackburn
committed
Nov 2, 2015
1 parent
8bf5ac2
commit ff3232a
Showing
4 changed files
with
81 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
from __future__ import unicode_literals | ||
|
||
import factory | ||
from factory.fuzzy import FuzzyText | ||
|
||
from ecommerce.courses.models import Course | ||
|
||
|
||
class CourseFactory(factory.DjangoModelFactory): | ||
class Meta(object): | ||
model = Course | ||
|
||
id = FuzzyText(prefix='course-id-') | ||
name = FuzzyText(prefix='course-name-') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters