Skip to content

Commit ec66750

Browse files
renzonrenzon
authored andcommitted
Added date_joined on User Admin
#close 863
1 parent 7beddc9 commit ec66750

2 files changed

Lines changed: 189 additions & 2 deletions

File tree

.pytest_cache/v/cache/nodeids

Lines changed: 187 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,189 @@
11
[
2-
"pythonpro/core/tests/test_view_edit_password.py::test_edit_password"
2+
"pythonpro/cohorts/tests/test_cohorts.py::test_no_access",
3+
"pythonpro/cohorts/tests/test_cohorts.py::test_cohort_links_for_logged_user",
4+
"pythonpro/cohorts/tests/test_cohorts.py::test_cohort_links_not_avaliable_for_no_user",
5+
"pythonpro/cohorts/tests/test_cohorts.py::test_status_code",
6+
"pythonpro/cohorts/tests/test_cohorts.py::test_cohort_propeties[title]",
7+
"pythonpro/cohorts/tests/test_cohorts.py::test_cohort_propeties[mail_list]",
8+
"pythonpro/cohorts/tests/test_cohorts.py::test_cohort_propeties[forum_post]",
9+
"pythonpro/cohorts/tests/test_cohorts.py::test_cohort_img",
10+
"pythonpro/cohorts/tests/test_cohorts.py::test_cohort_start",
11+
"pythonpro/cohorts/tests/test_cohorts.py::test_cohort_end",
12+
"pythonpro/cohorts/tests/test_cohorts.py::test_live_classes_are_sorted",
13+
"pythonpro/cohorts/tests/test_cohorts.py::test_live_classes_datetime",
14+
"pythonpro/cohorts/tests/test_cohorts.py::test_live_classes_vimeo",
15+
"pythonpro/cohorts/tests/test_cohorts.py::test_webinars_are_sorted",
16+
"pythonpro/cohorts/tests/test_cohorts.py::test_webinars_datetime",
17+
"pythonpro/cohorts/tests/test_cohorts.py::test_webinars_vimeo[speaker]",
18+
"pythonpro/cohorts/tests/test_cohorts.py::test_webinars_vimeo[speaker_title]",
19+
"pythonpro/cohorts/tests/test_cohorts.py::test_webinars_vimeo[title]",
20+
"pythonpro/cohorts/tests/test_cohorts.py::test_webinars_vimeo[vimeo_id]",
21+
"pythonpro/core/tests/test_apps.py::test_home",
22+
"pythonpro/core/tests/test_login.py::test_page_status",
23+
"pythonpro/core/tests/test_login.py::test_page_content[<form]",
24+
"pythonpro/core/tests/test_login.py::test_page_content[<input type=\"text\" name=\"username\"]",
25+
"pythonpro/core/tests/test_login.py::test_page_content[<input type=\"password\" name=\"password\"]",
26+
"pythonpro/core/tests/test_login.py::test_page_content[type=\"submit\"]",
27+
"pythonpro/core/tests/test_middleware.py::test_ssl_middleware_removed_for_debug_true[True]",
28+
"pythonpro/core/tests/test_middleware.py::test_ssl_middleware_removed_for_debug_true[False]",
29+
"pythonpro/core/tests/test_middleware.py::test_ssl_middleware_removed_for_debug_flag[True]",
30+
"pythonpro/core/tests/test_middleware.py::test_ssl_middleware_removed_for_debug_flag[False]",
31+
"pythonpro/core/tests/test_middleware.py::test_ssl_redirect_for_unsecure_request",
32+
"pythonpro/core/tests/test_middleware.py::test_ssl_no_redirect_for_secure_request",
33+
"pythonpro/core/tests/test_middleware.py::test_ssl_no_redirect_for_https_heroku_header",
34+
"pythonpro/core/tests/test_password_reset.py::test_email_form_status",
35+
"pythonpro/core/tests/test_password_reset.py::test_email_form_content[<input type=\"email\"]",
36+
"pythonpro/core/tests/test_password_reset.py::test_email_form_content[type=\"submit\"]",
37+
"pythonpro/core/tests/test_password_reset.py::test_reset_done",
38+
"pythonpro/core/tests/test_view_edit_email.py::test_not_logged_user",
39+
"pythonpro/core/tests/test_view_edit_email.py::test_logged_status_code",
40+
"pythonpro/core/tests/test_view_edit_email.py::test_profile_email",
41+
"pythonpro/core/tests/test_view_edit_email.py::test_form_data[<form method=\"post\"]",
42+
"pythonpro/core/tests/test_view_edit_email.py::test_form_data[<input type=\"email\" name=\"email]",
43+
"pythonpro/core/tests/test_view_edit_email.py::test_form_data[<input type=\"password\" name=\"current_password]",
44+
"pythonpro/core/tests/test_view_edit_email.py::test_form_data[type=\"submit]",
45+
"pythonpro/core/tests/test_view_edit_email.py::test_edit_email",
46+
"pythonpro/core/tests/test_view_edit_email.py::test_not_edit_email_wrong_password",
47+
"pythonpro/core/tests/test_view_edit_email.py::test_email_error_msg",
48+
"pythonpro/core/tests/test_view_edit_name.py::test_not_logged_user",
49+
"pythonpro/core/tests/test_view_edit_name.py::test_logged_status_code",
50+
"pythonpro/core/tests/test_view_edit_name.py::test_profile_first_name",
51+
"pythonpro/core/tests/test_view_edit_name.py::test_form_data[<form method=\"post\"]",
52+
"pythonpro/core/tests/test_view_edit_name.py::test_form_data[<input type=\"text\" name=\"first_name]",
53+
"pythonpro/core/tests/test_view_edit_name.py::test_form_data[type=\"submit]",
54+
"pythonpro/core/tests/test_view_edit_name.py::test_edit_name",
55+
"pythonpro/core/tests/test_view_edit_password.py::test_not_logged_user",
56+
"pythonpro/core/tests/test_view_edit_password.py::test_logged_status_code",
57+
"pythonpro/core/tests/test_view_edit_password.py::test_form_data[<form method=\"post\"]",
58+
"pythonpro/core/tests/test_view_edit_password.py::test_form_data[<input type=\"password\" name=\"old_password]",
59+
"pythonpro/core/tests/test_view_edit_password.py::test_form_data[<input type=\"password\" name=\"new_password1]",
60+
"pythonpro/core/tests/test_view_edit_password.py::test_form_data[<input type=\"password\" name=\"new_password2]",
61+
"pythonpro/core/tests/test_view_edit_password.py::test_form_data[type=\"submit]",
62+
"pythonpro/core/tests/test_view_edit_password.py::test_edit_password",
63+
"pythonpro/core/tests/test_view_home.py::test_home_status_code",
64+
"pythonpro/core/tests/test_view_home.py::test_thanks_status_code",
65+
"pythonpro/core/tests/test_view_home.py::test_home_template",
66+
"pythonpro/core/tests/test_view_home.py::test_lead_form[<form action=\"https://python.us17.list-manage.com/subscribe/post?u=ff7c56095f83f9c254edd749e&amp;id=e3072e0df0\"]",
67+
"pythonpro/core/tests/test_view_home.py::test_lead_form[<input type=\"text\" name=\"FNAME\"]",
68+
"pythonpro/core/tests/test_view_home.py::test_lead_form[<input type=\"email\" name=\"EMAIL\"]",
69+
"pythonpro/core/tests/test_view_home.py::test_lead_form[<button type=\"submit\"]",
70+
"pythonpro/core/tests/test_view_home.py::test_subscription_today_date[day-28]",
71+
"pythonpro/core/tests/test_view_home.py::test_subscription_today_date[month-11]",
72+
"pythonpro/core/tests/test_view_home.py::test_subscription_today_date[year-2018]",
73+
"pythonpro/core/tests/test_view_home.py::test_forum_tab_is_not_present",
74+
"pythonpro/core/tests/test_view_home.py::test_forum_tab_is_present",
75+
"pythonpro/core/tests/test_view_home.py::test_payment_link_is_present",
76+
"pythonpro/core/tests/test_view_home.py::test_payment_link_is_not_present",
77+
"pythonpro/core/tests/test_view_profile.py::test_profile_not_logged_user",
78+
"pythonpro/core/tests/test_view_profile.py::test_profile_status_code",
79+
"pythonpro/core/tests/test_view_profile.py::test_profile_first_name",
80+
"pythonpro/core/tests/test_view_profile.py::test_profile_email",
81+
"pythonpro/core/tests/test_view_profile.py::test_edit_name_link",
82+
"pythonpro/core/tests/test_view_profile.py::test_edit_email_link",
83+
"pythonpro/core/tests/test_view_profile.py::test_edit_password_link",
84+
"pythonpro/core/tests/test_view_tech_talks.py::test_status_code",
85+
"pythonpro/core/tests/test_view_tech_talks.py::test_link_on_home",
86+
"pythonpro/discourse/tests/test_sso.py::test_status",
87+
"pythonpro/discourse/tests/test_sso.py::test_redirect_base_url",
88+
"pythonpro/discourse/tests/test_sso.py::test_redirect_payload_has_nonce",
89+
"pythonpro/discourse/tests/test_sso.py::test_redirect_payload_user_data",
90+
"pythonpro/discourse/tests/test_sso.py::test_status_invalid_data[invalid_data0]",
91+
"pythonpro/discourse/tests/test_sso.py::test_status_invalid_data[invalid_data1]",
92+
"pythonpro/discourse/tests/test_sso.py::test_status_invalid_data[invalid_data2]",
93+
"pythonpro/discourse/tests/test_sso.py::test_status_invalid_data[invalid_data3]",
94+
"pythonpro/discourse/tests/test_sso.py::test_payload_without_nonce",
95+
"pythonpro/discourse/tests/test_sso.py::test_payload_with_mismatch_signature",
96+
"pythonpro/discourse/tests/test_sso.py::test_user_not_logged_status_code",
97+
"pythonpro/discourse/tests/test_sso.py::test_user_not_logged",
98+
"pythonpro/modules/tests/test_chapters_view.py::test_chapter_title_on_section",
99+
"pythonpro/modules/tests/test_chapters_view.py::test_chapter_url_on_section",
100+
"pythonpro/modules/tests/test_chapters_view.py::test_status_code",
101+
"pythonpro/modules/tests/test_chapters_view.py::test_breadcrumb_module",
102+
"pythonpro/modules/tests/test_chapters_view.py::test_breadcrumb_section",
103+
"pythonpro/modules/tests/test_chapters_view.py::test_breadcrumb_current",
104+
"pythonpro/modules/tests/test_module_detail_view.py::test_status_code",
105+
"pythonpro/modules/tests/test_module_detail_view.py::test_page_content_without_pre_requisite[Python Birds]",
106+
"pythonpro/modules/tests/test_module_detail_view.py::test_page_content_without_pre_requisite[Introduzir programa\\xe7\\xe3o Procedural e Orienta\\xe7\\xe3o a Objetos em Python.]",
107+
"pythonpro/modules/tests/test_module_detail_view.py::test_page_content_without_pre_requisite[Alunos com nenhuma ou pouca experi\\xeancia.]",
108+
"pythonpro/modules/tests/test_module_detail_view.py::test_page_content_without_pre_requisite[Durante o m\\xf3dulo ser\\xe1 desenvolvida uma vers\\xe3o simplificada do jogo Angry Birds. Assim o aluno aprender\\xe1 os conceitos ao mesmo tempo em que implementa um projeto pr\\xe1tico.]",
109+
"pythonpro/modules/tests/test_module_detail_view.py::test_page_content_with_pre_requisite[Objetos Pyth\\xf4nicos]",
110+
"pythonpro/modules/tests/test_module_detail_view.py::test_page_content_with_pre_requisite[Aprofundar o conhecimento de Orienta\\xe7\\xe3o a Objetos tendo em vista as peculiaridade do Python.]",
111+
"pythonpro/modules/tests/test_module_detail_view.py::test_page_content_with_pre_requisite[Alunos que conhecem OO e est\\xe3o come\\xe7ando com Python ou que j\\xe1 usam a linguagem no dia-a-dia, mas querem aperfei\\xe7oar o modo pyth\\xf4nico de programar.]",
112+
"pythonpro/modules/tests/test_module_detail_view.py::test_page_content_with_pre_requisite[Python Birds]",
113+
"pythonpro/modules/tests/test_module_detail_view.py::test_page_content_with_pre_requisite[Aprofundamento no conhecimento da linguagem: tipagem din\\xe2mica, protocolos versus interfaces, classes abstratas, heran\\xe7a m\\xfaltipla e sobrecarga de operadores s\\xe3o alguns dos temas cobertos.]",
114+
"pythonpro/modules/tests/test_module_detail_view.py::test_section_titles",
115+
"pythonpro/modules/tests/test_module_detail_view.py::test_section_urls",
116+
"pythonpro/modules/tests/test_module_detail_view.py::test_chapter_titles",
117+
"pythonpro/modules/tests/test_module_detail_view.py::test_chapter_urls",
118+
"pythonpro/modules/tests/test_module_index_view.py::test_status_code_logged",
119+
"pythonpro/modules/tests/test_module_index_view.py::test_status_code_not_logged",
120+
"pythonpro/modules/tests/test_module_index_view.py::test_module_index_link_not_logged",
121+
"pythonpro/modules/tests/test_module_index_view.py::test_module_link_not_logged",
122+
"pythonpro/modules/tests/test_module_index_view.py::test_module_index_link_logged",
123+
"pythonpro/modules/tests/test_module_index_view.py::test_module_link_logged",
124+
"pythonpro/modules/tests/test_module_index_view.py::test_anchor",
125+
"pythonpro/modules/tests/test_module_index_view.py::test_present_attrs[title]",
126+
"pythonpro/modules/tests/test_module_index_view.py::test_present_attrs[objective]",
127+
"pythonpro/modules/tests/test_module_index_view.py::test_present_attrs[description]",
128+
"pythonpro/modules/tests/test_module_index_view.py::test_present_attrs[target]",
129+
"pythonpro/modules/tests/test_next_content.py::test_topic_with_next_topic",
130+
"pythonpro/modules/tests/test_next_content.py::test_last_topic",
131+
"pythonpro/modules/tests/test_next_content.py::test_last_topic_next_chapter",
132+
"pythonpro/modules/tests/test_next_content.py::test_last_topic_next_section",
133+
"pythonpro/modules/tests/test_next_content.py::test_last_topic_next_module",
134+
"pythonpro/modules/tests/test_next_content.py::test_last_topic_next_none",
135+
"pythonpro/modules/tests/test_next_content.py::test_cache",
136+
"pythonpro/modules/tests/test_sections_view.py::test_status_code",
137+
"pythonpro/modules/tests/test_sections_view.py::test_title[title]",
138+
"pythonpro/modules/tests/test_sections_view.py::test_title[description]",
139+
"pythonpro/modules/tests/test_sections_view.py::test_breadcrumb_parent",
140+
"pythonpro/modules/tests/test_sections_view.py::test_breadcrumb_current",
141+
"pythonpro/modules/tests/test_topics_view.py::test_topic_title_on_chapter",
142+
"pythonpro/modules/tests/test_topics_view.py::test_topic_url_on_section",
143+
"pythonpro/modules/tests/test_topics_view.py::test_status_code",
144+
"pythonpro/modules/tests/test_topics_view.py::test_vimeo_video",
145+
"pythonpro/modules/tests/test_topics_view.py::test_property_is_present[title]",
146+
"pythonpro/modules/tests/test_topics_view.py::test_property_is_present[description]",
147+
"pythonpro/modules/tests/test_topics_view.py::test_breadcrumb_module",
148+
"pythonpro/modules/tests/test_topics_view.py::test_breadcrumb_section",
149+
"pythonpro/modules/tests/test_topics_view.py::test_breadcrumb_chapter",
150+
"pythonpro/modules/tests/test_topics_view.py::test_breadcrumb_current",
151+
"pythonpro/modules/tests/test_topics_view.py::test_discourse_topic_id",
152+
"pythonpro/modules/tests/test_topics_view.py::test_discourse_url",
153+
"pythonpro/payments/tests.py::test_status_code_subscriptions_closed",
154+
"pythonpro/payments/tests.py::test_status_code_subscriptions_open",
155+
"pythonpro/payments/tests.py::test_content_subscription_open[R$ 1800,00]",
156+
"pythonpro/payments/tests.py::test_content_subscription_open[10x de R$ 180,00 sem juros pelo pagseguro]",
157+
"pythonpro/payments/tests.py::test_content_subscription_open[Parcelada sem Juros]",
158+
"pythonpro/payments/tests.py::test_content_subscription_open[\\xc0 Vista com Desconto]",
159+
"pythonpro/payments/tests.py::test_content_subscription_open[Pague a vista por boleto e ganhe R$ 300,00 de desconto.]",
160+
"pythonpro/payments/tests.py::test_content_subscription_open[com assunto \"Inscri\\xe7\\xe3o\" para receber um boleto no valor de R$1500,00.]",
161+
"pythonpro/payments/tests.py::test_content_subscription_open[href=\"mailto:renzo@python.pro.br?subject=Inscri\\xe7\\xe3o%20Boleto\"]",
162+
"pythonpro/payments/tests.py::test_content_subscription_closed",
163+
"pythonpro/payments/tests.py::test_leads_form_when_subscription_closed",
164+
"pythonpro/payments/tests.py::test_pagseguro_form[<form action=\"https://pagseguro.uol.com.br/pre-approvals/request.html\" method=\"post\">]",
165+
"pythonpro/payments/tests.py::test_pagseguro_form[<input type=\"hidden\" name=\"code\" value=\"28B4C9D65353AD8554943F8ED0585371\"/>]",
166+
"pythonpro/payments/tests.py::test_pagseguro_form[name=\"submit\"]",
167+
"pythonpro/payments/tests.py::test_thanks_status_code",
168+
"pythonpro/promos/tests/test_views.py::test_video_status",
169+
"pythonpro/promos/tests/test_views.py::test_ty_status",
170+
"pythonpro/promos/tests/test_views.py::test_video_lead_form[<form class=\"form-inline justify-content-center\" action=\"https://python.us17.list-manage.com/subscribe/post?u=ff7c56095f83f9c254edd749e&amp;id=a88d1dd555\"]",
171+
"pythonpro/promos/tests/test_views.py::test_video_lead_form[method=\"post\"]",
172+
"pythonpro/promos/tests/test_views.py::test_video_lead_form[<input type=\"text\" name=\"FNAME\"]",
173+
"pythonpro/promos/tests/test_views.py::test_video_lead_form[<input type=\"email\" name=\"EMAIL\"]",
174+
"pythonpro/promos/tests/test_views.py::test_video_lead_form[<button type=\"submit\"]",
175+
"pythonpro/promos/tests/test_views.py::test_video_lead_form_not_present[<form class=\"form-inline justify-content-center\" action=\"https://python.us17.list-manage.com/subscribe/post?u=ff7c56095f83f9c254edd749e&amp;id=a88d1dd555\"]",
176+
"pythonpro/promos/tests/test_views.py::test_video_lead_form_not_present[method=\"post\"]",
177+
"pythonpro/promos/tests/test_views.py::test_video_lead_form_not_present[<input type=\"text\" name=\"FNAME\"]",
178+
"pythonpro/promos/tests/test_views.py::test_video_lead_form_not_present[<input type=\"email\" name=\"EMAIL\"]",
179+
"pythonpro/promos/tests/test_views.py::test_video_lead_form_not_present[<button type=\"submit\"]",
180+
"pythonpro/promos/tests/test_views.py::test_video_subscription_link_not_present",
181+
"pythonpro/promos/tests/test_views.py::test_video_subscription_link_present",
182+
"pythonpro/promos/tests/test_views.py::test_video_title",
183+
"pythonpro/promos/tests/test_views.py::test_video_h1",
184+
"pythonpro/promos/tests/test_views.py::test_video_iframe",
185+
"pythonpro/promos/tests/test_views.py::test_video_context",
186+
"pythonpro/tests/test_urls.py::test_urls_len",
187+
"pythonpro/tests/test_wsgi.py::test_wsgi_default_settings",
188+
"pythonpro/tests/test_wsgi.py::test_application_instace"
3189
]

pythonpro/core/admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,11 @@ class UserAdmin(admin.ModelAdmin):
3939
'fields': ('first_name', 'email', 'password1', 'password2'),
4040
}),
4141
)
42+
4243
form = UserChangeForm
4344
add_form = UserCreationForm
4445
change_password_form = AdminPasswordChangeForm
45-
list_display = ('email', 'first_name', 'is_staff')
46+
list_display = ('email', 'first_name', 'is_staff', 'date_joined')
4647
list_filter = ('is_staff', 'is_superuser', 'is_active', 'groups')
4748
search_fields = ('first_name', 'email')
4849
ordering = ('first_name',)

0 commit comments

Comments
 (0)