-
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.
Extraida lib para gestão de arquivos no s3 para lib devpro-s3-storages
close #32
- Loading branch information
Showing
7 changed files
with
25 additions
and
82 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
from django.contrib import admin | ||
from django.contrib.admin import ModelAdmin | ||
from django_min_custom_user.admin import MinUserAdmin | ||
|
||
from devpro.base.models import User, Arquivo | ||
from devpro.base.models import User | ||
|
||
|
||
@admin.register(User) | ||
class UserAdmin(MinUserAdmin): | ||
pass | ||
|
||
|
||
@admin.register(Arquivo) | ||
class ArquivoAdmin(ModelAdmin): | ||
pass |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
from django.db import models | ||
from django_min_custom_user.models import MinAbstractUser | ||
|
||
|
||
class User(MinAbstractUser): | ||
pass | ||
|
||
|
||
class Arquivo(models.Model): | ||
arq = models.FileField(upload_to='public/') | ||
privado = models.FileField(upload_to='private/') |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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