Skip to content

Conversation

@wmaciejewskimer
Copy link
Collaborator

No description provided.

@wmaciejewskimer wmaciejewskimer linked an issue Mar 14, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Mar 14, 2023

Codecov Report

Merging #208 (30e2a66) into develop (70af1c6) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #208      +/-   ##
===========================================
+ Coverage    97.05%   97.07%   +0.01%     
===========================================
  Files           42       43       +1     
  Lines          918      923       +5     
===========================================
+ Hits           891      896       +5     
  Misses          27       27              
Impacted Files Coverage Δ
...005_remove_mfamethod_primary_is_active_and_more.py 100.00% <100.00%> (ø)
trench/models.py 96.15% <100.00%> (+0.07%) ⬆️

class MFAMethod(Model):
_BACKUP_CODES_DELIMITER = "|"

id = AutoField(primary_key=True)
Copy link

Choose a reason for hiding this comment

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

Any reason for the switch from BigAutoField to normal sized AutoField?

On positioning here, this is fine since there is a single model, otherwise it might be preferable to specify this in apps.py

ex.

class TrenchConfig(AppConfig):
    default_auto_field = "django.db.models.BigAutoField"
    name = "trench"
    verbose_name = "django-trench"

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.

trench.MFAMethod warning

3 participants