Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

tasks:
- init: pip install -r requirements.txt


14 changes: 4 additions & 10 deletions accounts/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
from .models import User, UserProfile


class UserProfileInline(admin.StackedInline):
model = UserProfile
can_delete = False
verbose_name_plural = 'profile'


class UserAdmin(admin.ModelAdmin):
inlines = (UserProfileInline, )

admin.site.register(User, UserAdmin)
# admin.site.register(User, UserAdmin)
class _structure(admin.ModelAdmin):
list_display = ( "user","phone" , "address")
admin.site.register(UserProfile , _structure)
9 changes: 7 additions & 2 deletions chat/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@

from .models import Comment, Post

admin.site.register(Comment)
admin.site.register(Post)
class _comment_structure(admin.ModelAdmin):
list_display=("user" , "text","comment_date" )

class _Post_structure(admin.ModelAdmin):
list_display=("user" , "text","picture" )
admin.site.register(Comment , _comment_structure)
admin.site.register(Post , _Post_structure)
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Django==2.2.13
Pillow==6.0.0
pkg-resources==0.0.0
# pkg-resources==0.0.0
pytz==2019.1
sqlparse==0.3.0