-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I had the wrong version. This should be more correct.
- Loading branch information
Showing
28 changed files
with
235 additions
and
869 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 |
---|---|---|
|
@@ -6,5 +6,4 @@ | |
|
||
admin.site.register(Customer) | ||
admin.site.register(Product) | ||
admin.site.register(Tag) | ||
admin.site.register(Order) |
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 |
---|---|---|
|
@@ -3,6 +3,3 @@ | |
|
||
class AccountsConfig(AppConfig): | ||
name = 'accounts' | ||
|
||
def ready(self): | ||
import accounts.signals |
This file was deleted.
Oops, something went wrong.
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,24 +1,9 @@ | ||
from django.forms import ModelForm | ||
from django.contrib.auth.forms import UserCreationForm | ||
from django.contrib.auth.models import User | ||
from django import forms | ||
|
||
from .models import * | ||
|
||
class CustomerForm(ModelForm): | ||
class Meta: | ||
model = Customer | ||
fields = '__all__' | ||
exclude = ['user'] | ||
|
||
class OrderForm(ModelForm): | ||
class Meta: | ||
model = Order | ||
fields = '__all__' | ||
|
||
|
||
class CreateUserForm(UserCreationForm): | ||
class Meta: | ||
model = User | ||
fields = ['username', 'email', 'password1', 'password2'] | ||
|
||
class Meta: | ||
model = Order | ||
fields = '__all__' |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
41 changes: 0 additions & 41 deletions
41
DjangoManagementAppClone/accounts/templates/accounts/account_settings.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.