Skip to content

User profiles#1

Open
perimetro20 wants to merge 5 commits intospaced_repetitionfrom
user_profiles
Open

User profiles#1
perimetro20 wants to merge 5 commits intospaced_repetitionfrom
user_profiles

Conversation

@perimetro20
Copy link
Copy Markdown
Member

This is the initial implementation of a user_profiles app that will be in charge of extending the Django User Model via profiles, which are one_to_one relationships. This pull request if for my implementation of the student profile, which is created automatically when a new user is created, and needs to be assigned a new home_directory.

@perimetro20 perimetro20 requested a review from erikiado February 1, 2017 05:38
@codecov-io
Copy link
Copy Markdown

codecov-io commented Feb 1, 2017

Codecov Report

Merging #1 into spaced_repetition will increase coverage by 12.31%.

@@                  Coverage Diff                   @@
##           spaced_repetition       #1       +/-   ##
======================================================
+ Coverage              65.77%   78.08%   +12.31%     
======================================================
  Files                     22       34       +12     
  Lines                    149      251      +102     
======================================================
+ Hits                      98      196       +98     
- Misses                    51       55        +4
Impacted Files Coverage Δ
ProjectStud/settings/base.py 95.45% <ø> (ø)
user_profiles/tests.py 100% <100%> (ø)
spaced_repetition/admin.py 100% <100%> (ø)
...d_repetition/migrations/0003_auto_20170120_0032.py 100% <100%> (ø)
user_profiles/apps.py 100% <100%> (ø)
...d_repetition/migrations/0002_auto_20170120_0032.py 100% <100%> (ø)
...d_repetition/migrations/0005_auto_20170201_0222.py 100% <100%> (ø)
...d_repetition/migrations/0006_auto_20170201_0224.py 100% <100%> (ø)
...d_repetition/migrations/0004_auto_20170201_0026.py 100% <100%> (ø)
user_profiles/admin.py 100% <100%> (ø)
... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 613c21b...43092f1. Read the comment docs.

Copy link
Copy Markdown

@erikiado erikiado left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check the small changes requested on the code
(best practices python 3)

owner = models.ForeignKey('user_profiles.Student')
deck = models.ForeignKey(Deck)
question = models.CharField(max_length=300)
answer = models.CharField(max_length=750)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

falta el toString

Comment thread user_profiles/models.py Outdated
home_directory = models.OneToOneField(Folder)

def __str__(self):
return '%s' % (self.user)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cambiar por format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants