Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
#234 fix PlantCount card: count_method already in title
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Mayer authored and Florian Mayer committed Jul 29, 2020
1 parent f64a3a8 commit 7794301
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 33 deletions.
9 changes: 4 additions & 5 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ xmltodict = "==0.12.0"
django-allauth = "==0.42.0"
dbca-utils = "==1.1.1"
django-background-tasks = "==1.2.5"
fabric3 = "==1.14.post1"
Fabric3 = "==1.14.post1"
gunicorn = "==20.0.4"
uwsgi = "==2.0.19.1"
uWSGI = "==2.0.19.1"
python-memcached = "*"
django-confy = "==1.0.4"
django-confy = ">=1.0.4"
django-environ = "==0.4.5"
Unipath = "==1.1"
pandas = ">=1.0.5"
Expand Down Expand Up @@ -96,14 +96,13 @@ pytest-sugar = "*"
model-mommy = "*"
graphviz = "*"
tblib = "*"
confy = "*"

[dev-packages]

[requires]
python_version = "3.7"

[packages.django_fixture_magic]
[packages.django-fixture-magic]
git = "https://github.com/davedash/django-fixture-magic.git"
editable = true
ref = "master"
Expand Down
10 changes: 1 addition & 9 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
"""
from fabric.api import env, local # settings, cd, run
from fabric.colors import green, yellow # red
import confy
from confy import env as confyenv
try:
confy.read_environment_file(".env")
except:
pass

# from fabric.contrib.files import exists, upload_template

Expand Down
4 changes: 2 additions & 2 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# These lines are required for interoperability between local and container environments.
dot_env = os.path.join(os.getcwd(), '.env')
if os.path.exists(dot_env):
confy.read_environment_file()
confy.read_environment_file(envfile=dot_env)

if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.production')
Expand All @@ -17,7 +17,7 @@
# issue is really that Django is missing to avoid masking other
# exceptions on Python 2.
try:
import django
import django # noqa
except ImportError:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
Expand Down
6 changes: 0 additions & 6 deletions occurrence/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,12 +1018,6 @@ class PlantCondition(CodeLabelDescriptionMixin, models.Model):
pass


class PlantCountMethod(CodeLabelDescriptionMixin, models.Model):
"""The count method of a PlantCount."""

pass


class PlantCount(ObservationGroup):
"""Population plant count."""

Expand Down
5 changes: 0 additions & 5 deletions occurrence/templates/occurrence/cards/plantcount.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ <h6 class="card-title">Plant Count</h6>
<span class="oi oi-person" aria-hidden="true"></span>
Land manager {% if not object.land_manager_present %}not {% endif %}present.
</p>
<p class="card-text">
<span class="oi oi-magnifying-glass" aria-hidden="true"></span>
Count method: {{ object.get_count_method_display }}
({{ object.get_count_subject_display }} {{ object.get_count_accuracy_display }}).
</p>
<p class="card-text">
<small>
<div class="row justify-content-end">
Expand Down
1 change: 0 additions & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ coreapi-cli==1.0.9
coreschema==0.0.4
coverage==5.2
coveralls==2.1.1
confy==0.3.8
cryptography==3.0
dbca-utils==1.1.1
decorator==4.4.2
Expand Down

0 comments on commit 7794301

Please sign in to comment.