Skip to content

Commit

Permalink
Remove website and avatar from profile form
Browse files Browse the repository at this point in the history
  • Loading branch information
strycore committed May 23, 2024
1 parent 072cb23 commit 98b7d46
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion accounts/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class ProfileForm(forms.ModelForm):
class Meta:
"""ModelForm configuration"""
model = User
fields = ("website", "avatar", "email")
fields = ("email", )

def save(self, commit=True):
if "email" in self.changed_data:
Expand Down
5 changes: 0 additions & 5 deletions templates/accounts/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ <h1>{{user.username}}</h1>
{% endif %}
{% endif %}
<br/>
{% if user.website %}
<strong>Website:</strong>
<a href="{{user.website}}">{{user.website}}</a><br/>
{% endif %}
<br/>
<p>
You can log out from every computer you have Lutris installed on by regenerating a new authentication token.
<a href="{% url 'clear_auth_token' %}"
Expand Down

0 comments on commit 98b7d46

Please sign in to comment.